/* ===========================
   Dinomania Live Map - Main Styles
   =========================== */

/* Clean Image Showcase */
.image-showcase {
    position: relative;
    width: 800px;
    height: 538px;
    max-width: 100%;
}

.showcase-image {
    position: absolute;
    width: 800px;
    height: 538px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-image.active {
    opacity: 1;
}

.image-dots {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background: var(--primary-orange);
    width: 30px;
    border-radius: 5px;
}

/* Hero Visual responsive */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

@media (max-width: 900px) {
    .image-showcase {
        width: 100%;
        height: auto;
    }
    
    .showcase-image {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .showcase-image:not(.active) {
        display: none;
    }
}

/* Community Section Redesign */
.community {
    padding: 5rem 0;
    background: var(--dark-surface);
}

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

.community-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    display: block;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 1rem;
}

.community-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.social-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-orange);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.social-card:hover::before {
    transform: translateX(0);
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.social-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.social-card.discord .social-icon { color: #5865F2; }
.social-card.youtube .social-icon { color: #FF0000; }
.social-card.tiktok .social-icon { color: #000000; }
.social-card.twitter .social-icon { color: #1DA1F2; }

.social-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.social-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: var(--primary-orange);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-card:hover .social-arrow {
    transform: translateX(5px);
}

/* Navigation Brand Logo */
.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dinomania Brand Colors */
    --primary-orange: #FF6B35;
    --primary-green: #4ECB71;
    --dark-bg: #0A0E1A;
    --dark-surface: #111827;
    --dark-card: #1F2937;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    --gradient-secondary: linear-gradient(135deg, #4ECB71 0%, #36D068 100%);
    --gradient-dark: linear-gradient(180deg, #0A0E1A 0%, #111827 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-discord {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #5865F2;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, transparent 40%, transparent 60%, rgba(78, 203, 113, 0.05) 100%);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 100px;
    color: var(--primary-orange);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.hero-stats .stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* App Preview */
.app-preview {
    background: var(--dark-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.app-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.preview-header {
    background: var(--dark-card);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.preview-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.preview-header span:first-child { background: #FF5F57; }
.preview-header span:nth-child(2) { background: #FFBD2E; }
.preview-header span:nth-child(3) { background: #28CA42; }

.preview-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.about {
    padding: var(--spacing-2xl) 0;
    background: var(--dark-surface);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.card-icon i {
    font-size: 1.8rem;
}

.card-icon.orange {
    background: rgba(255, 107, 53, 0.2);
}

.card-icon.green {
    background: rgba(78, 203, 113, 0.2);
}

.card-icon.blue {
    background: rgba(59, 130, 246, 0.2);
}

.about-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
}

.features-showcase {
    margin-top: 4rem;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse .feature-content {
    direction: ltr;
}

.feature-number {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-content h3 {
    margin-bottom: 1rem;
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.visual-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Download Section */
.download {
    padding: var(--spacing-2xl) 0;
    background: var(--dark-surface);
}

.download-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.download-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-image img {
    width: auto;
    height: 500px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.version-info {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.version-badge {
    background: var(--dark-card);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.version-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.version-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.download-box {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.os-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.download-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.btn-download {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

/* Servers Section */
.servers {
    padding: var(--spacing-2xl) 0;
}

.servers-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.server-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    min-width: 400px;
    max-width: 500px;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 203, 113, 0.3);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.server-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.server-info {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    color: var(--text-secondary);
}

.info-item .value {
    font-weight: 600;
}

.btn-join {
    width: 100%;
    padding: 0.75rem;
    background: rgba(78, 203, 113, 0.1);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Community Section */
.community {
    padding: var(--spacing-2xl) 0;
    background: var(--dark-surface);
}

.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.community-stats .stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-orange);
    display: block;
}

.community-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-card);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 107, 53, 0.3);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.link-card.discord .link-icon {
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
}

.link-card.youtube .link-icon {
    background: rgba(255, 0, 0, 0.2);
    color: #FF0000;
}

.link-card.tiktok .link-icon {
    background: rgba(0, 0, 0, 0.2);
    color: #000000;
}

.link-card.twitter .link-icon {
    background: rgba(29, 155, 240, 0.2);
    color: #1D9BF0;
}

.link-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.link-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    max-width: 100%;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container,
    .download-wrapper,
    .community-content,
    .feature-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-item.reverse {
        direction: ltr;
    }
    
    .app-preview {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-grid,
    .servers-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}