/* ==========================================================================
   METIN2 OLDSCHOOL RPG THEME (mt2009.eu style)
   ========================================================================== */

:root, [data-theme="rpg"] {
    --gold-primary: #C5A059;
    --gold-bright: #F5D386;
    --gold-dark: #806029;
    --bg-main: #0B0A09;
    --bg-card: #1C1815;
    --bg-card-hover: #26211E;
    --border-card: #52422C;
    --text-main: #DBCDB8;
    --text-muted: #A39683;
    --red-accent: #7A1A1A;
    --red-hover: #9E2222;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

[data-theme="modern"] {
    --gold-primary: #00D4FF;
    --gold-bright: #80E9FF;
    --gold-dark: #007A99;
    --bg-main: #0A0F1A;
    --bg-card: #121A29;
    --bg-card-hover: #19253A;
    --border-card: #1E3150;
    --text-main: #E0E7FF;
    --text-muted: #94A3B8;
    --red-accent: #00A3CC;
    --red-hover: #0082A3;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

[data-theme="blood"] {
    --gold-primary: #E62E2E;
    --gold-bright: #FF6666;
    --gold-dark: #8C1111;
    --bg-main: #120A0A;
    --bg-card: #1F1010;
    --bg-card-hover: #2E1818;
    --border-card: #4A2424;
    --text-main: #FFEAE8;
    --text-muted: #C29999;
    --red-accent: #CC1F1F;
    --red-hover: #991717;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

[data-theme="ice"] {
    --gold-primary: #94D1FF;
    --gold-bright: #C2E5FF;
    --gold-dark: #3F7FA6;
    --bg-main: #0B1114;
    --bg-card: #131E24;
    --bg-card-hover: #1B2B33;
    --border-card: #28414D;
    --text-main: #E6F3FA;
    --text-muted: #99B8C7;
    --red-accent: #5C9CBD;
    --red-hover: #457891;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('assets/cursor.cur'), auto;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    background-image: url('assets/hero_bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .nav-links a {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 10, 9, 0.95);
    border-bottom: 2px solid var(--gold-dark);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-bright);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.logo span {
    color: var(--text-muted);
    font-size: 1.4rem;
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: url('assets/cursor.cur'), pointer;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.btn-discord {
    background: var(--red-accent);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--gold-primary);
    border-radius: 2px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    cursor: url('assets/cursor.cur'), pointer;
}

.btn-discord:hover {
    background: var(--red-hover);
}

/* THEME SWITCHER */
.theme-switch-wrapper {
    position: relative;
    display: inline-block;
}

.theme-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-card);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: url('assets/cursor.cur'), pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-btn:hover {
    color: var(--gold-bright);
    border-color: var(--gold-primary);
}

.theme-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 4px;
    margin-top: 0.5rem;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1000;
}

.theme-menu.show {
    display: block;
}

.theme-option {
    padding: 0.8rem 1rem;
    color: var(--text-main);
    cursor: url('assets/cursor.cur'), pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background 0.2s ease;
}

.theme-option:hover {
    background: var(--bg-card-hover);
    color: var(--gold-bright);
}

.theme-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.rpg-color { background: #C5A059; }
.modern-color { background: #00D4FF; }
.blood-color { background: #E62E2E; }
.ice-color { background: #94D1FF; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 20px;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.hero-left {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-right {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-left h1 {
    font-size: 3.5rem;
    color: var(--gold-bright);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-left p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.hero-showcase-title {
    font-size: 1rem !important;
    color: var(--gold-dark) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem !important;
}

.hero-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card {
    background: rgba(28, 24, 21, 0.7);
    border: 1px solid var(--border-card);
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: url('assets/cursor.cur'), pointer;
    transition: all 0.3s ease;
}

.hero-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    background: rgba(28, 24, 21, 0.9);
}

.hero-card img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--gold-dark);
}

.hero-card span {
    font-family: var(--font-heading);
    color: var(--gold-bright);
    font-size: 1rem;
}


/* cta-buttons was removed */

.btn {
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: url('assets/cursor.cur'), pointer;
}

.btn-primary {
    background: linear-gradient(to bottom, var(--gold-primary), var(--gold-dark));
    color: var(--bg-main);
    border-color: var(--gold-bright);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to bottom, var(--gold-bright), var(--gold-primary));
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(28, 24, 21, 0.8);
    color: var(--gold-primary);
    border: 1px solid var(--gold-dark);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-primary);
}

/* =========================================
   SECTIONS & TYPOGRAPHY
   ========================================= */
.section {
    padding: 100px 5%;
}

.black-section {
    background: transparent; 
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    text-transform: uppercase;
}

.section-title span {
    color: var(--gold-primary);
}

.gold-text {
    color: var(--gold-primary);
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
}

/* Optional parchment-like inner border */
.about-content::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px dashed var(--gold-dark);
    pointer-events: none;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* =========================================
   SYSTEMS GRID & CARDS
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    position: relative;
    cursor: url('assets/cursor.cur'), pointer;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--gold-dark);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--gold-primary);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tags span {
    background: rgba(0,0,0,0.5);
    color: var(--gold-bright);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.8rem;
    border: 1px solid var(--border-card);
    font-family: var(--font-heading);
}

/* =========================================
   FILES SHOWCASE
   ========================================= */
.files-showcase {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-dark);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
}

.files-showcase::after {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px dashed var(--gold-dark);
    pointer-events: none;
}

.files-info {
    flex: 1;
}

.files-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--gold-primary);
}

.files-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.floating-shield img {
    border: 2px solid var(--gold-dark);
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.discord-section {
    background: url('hero_bg.jpg') center/cover no-repeat;
    position: relative;
    padding: 100px 5%;
}

.discord-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 10, 9, 0.9);
}

.discord-section .container {
    position: relative;
    z-index: 2;
}

.discord-cta {
    display: inline-block;
    margin-top: 2rem;
    background: #5865F2; /* Discord color kept for brand recognition */
    color: white;
    padding: 1rem 3rem;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    border: 2px solid #4752C4;
    transition: all 0.3s ease;
}

.discord-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
}

/* =========================================
   MODAL (AÇILIR PENCERE)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: block;
}

.modal-content {
    background: var(--bg-card);
    margin: 3% auto;
    padding: 2.5rem;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    width: 95%;
    max-width: 1300px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.9), inset 0 0 20px rgba(0,0,0,0.8);
    animation: modalFadeIn 0.4s ease-out forwards;
}

/* Removed parchment inner border for Modal to prevent scroll overlap issues */

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--gold-dark);
    font-size: 35px;
    font-weight: bold;
    cursor: url('assets/cursor.cur'), pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--red-accent);
    cursor: url('assets/cursor.cur'), pointer;
}

.modal-title {
    color: var(--gold-bright);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Side-by-side flex layout for modal description */
.modal-flex-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.modal-left-col {
    flex: 0 0 50%; /* Make image slightly bigger */
    text-align: center;
}

.modal-right-col {
    flex: 1;
}

.modal-desc ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.modal-desc li {
    margin-bottom: 0.8rem;
}

.modal-desc code {
    background: rgba(0,0,0,0.6);
    color: var(--gold-bright);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--border-card);
    font-family: monospace;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar customization for webkit */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 2rem;
    background: #050403;
    border-top: 1px solid var(--gold-dark);
    color: var(--text-muted);
}

/* =========================================
   ANIMATIONS & UTILS
   ========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* =========================================
   IMAGE LIGHTBOX
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    animation: zoom 0.3s ease;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--gold-dark);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: url('assets/cursor.cur'), pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--gold-bright);
    text-decoration: none;
    cursor: url('assets/cursor.cur'), pointer;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Modal images cursor change */
.modal-desc img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-desc img:hover {
    transform: scale(1.02);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .files-showcase {
        flex-direction: column;
        padding: 2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-right {
        align-items: center;
        margin-top: 2rem;
    }
    
    .modal-flex-container {
        flex-direction: column;
    }
    
    .modal-left-col {
        flex: 1 1 100%;
        width: 100%;
        margin-bottom: 1.5rem;
    }
}
