/* ============================================
   JENNY MOD - Global Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #432b6e;
    --primary-dark: #1a0a2e;
    --primary-light: #7f60af;
    --accent: #fd1de2;
    --accent-hover: #e010c8;
    --secondary: #7554a1;
    --gradient: linear-gradient(135deg, #7554a1, #aa525c);
    --gradient-hero: linear-gradient(135deg, #1a0a2e 0%, #432b6e 50%, #2d1b4e 100%);
    --text: #ffffff;
    --text-muted: #b8a9d4;
    --text-dark: #333333;
    --bg-dark: #0f0520;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: rgba(15, 5, 32, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition);
}

.lang-btn:hover {
    background: var(--bg-card-hover);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    min-width: 150px;
    display: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 100;
}

.lang-dropdown.active .lang-menu {
    display: block;
}

.lang-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: background var(--transition);
}

.lang-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.lang-menu a.active-lang {
    color: var(--accent);
    background: rgba(253, 29, 226, 0.1);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--gradient-hero);
    padding: 160px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero.webp') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin: 0 auto 30px;
    box-shadow: 0 0 40px rgba(253, 29, 226, 0.3);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #fd1de2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 35px;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.hero-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(253, 29, 226, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(253, 29, 226, 0.5);
    color: #fff;
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: 80px 20px;
}

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

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-alt {
    background: rgba(67, 43, 110, 0.15);
}

/* ============================================
   SPECS TABLE
   ============================================ */
.specs-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 14px 20px;
    font-size: 0.95rem;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text);
    width: 40%;
    background: rgba(255, 255, 255, 0.03);
}

.specs-table td:last-child {
    color: var(--text-muted);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ============================================
   CHARACTER CARDS
   ============================================ */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    text-align: center;
}

.character-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.character-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.character-card .char-info {
    padding: 16px;
}

.character-card h4 {
    margin-bottom: 4px;
}

.character-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   SCREENSHOTS / GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: all var(--transition);
}

.download-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(253, 29, 226, 0.15);
}

.download-card .edition-badge {
    display: inline-block;
    background: var(--gradient);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.download-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.download-card .version {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.download-card .file-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.download-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.download-card ul li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-card ul li::before {
    content: '\2713';
    color: var(--accent);
    font-weight: bold;
}

/* ============================================
   INSTALLATION STEPS
   ============================================ */
.install-steps {
    max-width: 800px;
    margin: 0 auto;
}

.install-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.step-content h4 {
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.93rem;
    margin-bottom: 0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 28px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item:hover {
    border-color: rgba(253, 29, 226, 0.3);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    transition: transform var(--transition);
    min-width: 20px;
    text-align: center;
}

.faq-item.active .faq-question::after {
    content: '\2212';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--gradient);
    text-align: center;
    padding: 60px 20px;
    border-radius: 0;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: #fff;
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: rgba(10, 3, 20, 0.95);
    border-top: 1px solid var(--border);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-col h4 {
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--text);
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    padding: 5px 0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.footer-disclaimer {
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
#scrollTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTop.visible {
    opacity: 1;
    visibility: visible;
}

#scrollTop:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LEGAL / TEXT PAGES
   ============================================ */
.legal-page {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 80vh;
}

.legal-page h1 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    text-align: center;
}

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

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--text);
}

.legal-content p,
.legal-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 100px 20px 15px;
    background: var(--primary-dark);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 8px;
    font-size: 0.9rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-muted);
}

.breadcrumb-list li:last-child::after {
    content: '';
}

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list li:last-child {
    color: var(--accent);
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */
.page-header {
    background: var(--gradient-hero);
    padding: 140px 20px 70px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero.webp') center/cover no-repeat;
    opacity: 0.08;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ============================================
   404 PAGE
   ============================================ */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}

.page-404 h1 {
    font-size: 8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-404 h2 {
    margin-bottom: 15px;
}

.page-404 p {
    margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .hero h1 { font-size: 2.5rem; }
    .hero { padding: 140px 20px 80px; }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 5, 32, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links a::after {
        display: none;
    }

    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .hero-stats {
        gap: 25px;
    }

    .page-header h1 { font-size: 2rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-stats { flex-direction: column; gap: 15px; }
    .hero-logo { width: 90px; height: 90px; }
    .characters-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* Content narrow container */
.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 43, 217, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.contact-info-box h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-info-box ul {
    list-style: none;
    padding: 0;
}

.contact-info-box ul li {
    margin-bottom: 8px;
}

.contact-info-box ul li a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info-box ul li a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
