/* Enhanced styles for MCPHubz website */

/* Base styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --premium-color: #ffc107;
    --success-color: #28a745;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #3a56c5;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #3a56c5;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a6cf7 0%, #6a11cb 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--secondary-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Featured Servers */
.featured-servers {
    background-color: white;
}

.premium-badge {
    text-align: center;
    margin-bottom: 30px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
}

.badge.official {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge.premium {
    background-color: #fff8e1;
    color: #ffa000;
}

.learn-more {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: underline;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.server-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.server-card.premium {
    border: 2px solid var(--premium-color);
    position: relative;
}

.server-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.server-header h3 {
    margin-right: 10px;
    font-size: 1.3rem;
}

.server-meta {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.server-meta span {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.server-meta i {
    margin-right: 5px;
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

/* Monetization Banner */
.monetization-banner {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    text-align: center;
    padding: 50px 0;
}

.banner-content {
    max-width: 700px;
    margin: 0 auto;
}

.banner-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.banner-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

/* Quick Start Guides */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.guide-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.guide-card.premium {
    border: 2px solid var(--premium-color);
}

.guide-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.guide-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.guide-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.premium-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--premium-color);
    color: #856404;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Marketplace Preview */
.marketplace-preview {
    background-color: #f8f9fa;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.marketplace-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: var(--transition);
}

.marketplace-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-header h3 {
    font-size: 1.2rem;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
}

.item-meta {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-meta span {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-card.premium {
    border: 2px solid var(--premium-color);
}

.resource-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.resource-card h3 {
    margin-bottom: 15px;
}

.resource-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* API Preview */
.api-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 70px 0;
}

.api-content {
    text-align: center;
}

.api-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.api-content p {
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.api-tiers {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.api-tier {
    background-color: white;
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: var(--transition);
}

.api-tier:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.api-tier.featured {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--premium-color);
}

.api-tier h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.api-tier .price {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.api-tier ul {
    text-align: left;
    margin-bottom: 25px;
}

.api-tier ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.api-tier ul li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Consulting Preview */
.consulting-preview {
    background-color: white;
    padding: 70px 0;
}

.consulting-content {
    text-align: center;
}

.consulting-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.consulting-content p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--secondary-color);
}

.consulting-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    padding: 25px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.service-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item h3 {
    margin-bottom: 10px;
}

.service-item p {
    color: var(--secondary-color);
    margin: 0;
}

/* Newsletter */
.newsletter {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 25px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .api-tiers {
        flex-direction: column;
        align-items: center;
    }
    
    .api-tier.featured {
        transform: none;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .server-card, .guide-card, .marketplace-item, .resource-card {
        padding: 20px;
    }
}
