@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --ins-bg-dark: #0a0a0a;
    --ins-bg-darker: #050505;
    --ins-bg-card: #111111;

    --ins-primary: #1a472a;
    /* Mystical Green */
    --ins-primary-glow: rgba(26, 71, 42, 0.6);

    --ins-accent-purple: #5d3fd3;
    /* Mystical Purple */
    --ins-accent-purple-glow: rgba(93, 63, 211, 0.5);

    --ins-gold: #d4af37;
    /* Soft Gold */
    --ins-gold-dim: #b8962e;

    --ins-text-main: #e0e0e0;
    --ins-text-muted: #a0a0a0;

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --glow-text: 0 0 10px rgba(212, 175, 55, 0.3);
    --glow-box: 0 0 20px rgba(26, 71, 42, 0.2);
}

body {
    background-color: var(--ins-bg-dark);
    color: var(--ins-text-main);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--ins-text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Override Template Styles */
.header-1 {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mean__menu-wrapper .main-menu ul li a {
    font-family: var(--font-heading);
    color: var(--ins-text-main);
    font-weight: 500;
    font-size: 14px;
}

.mean__menu-wrapper .main-menu ul li:hover>a {
    color: var(--ins-gold);
    text-shadow: var(--glow-text);
}

.gt-theme-btn {
    background: linear-gradient(45deg, var(--ins-primary), #2a6ed4);
    background-size: 200% auto;
    border: 1px solid var(--ins-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
}

.gt-theme-btn:hover {
    background-position: right center;
    box-shadow: 0 0 20px var(--ins-primary-glow);
}

/* Custom Utilities */
.text-gold {
    color: var(--ins-gold) !important;
}

.text-purple {
    color: var(--ins-accent-purple) !important;
}

.bg-dark-ins {
    background-color: var(--ins-bg-darker) !important;
}

/* Custom Background Texture */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/custom/texture_runes.png');
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

/* Preloader customization */
#preloader {
    background-color: var(--ins-bg-dark);
}

.txt-loading span {
    color: var(--ins-gold);
    -webkit-text-stroke: 0px !important;
}

/* Fix Game Section Image Clarity */
.gt-game-bg-section::before {
    display: none !important;
    background: none !important;
}

.gt-game-bg-section {
    position: relative !important;
    z-index: 1 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    /* Attempt to sharpen rendering if browser supports */
    image-rendering: -webkit-optimize-contrast;
}

/* Remove text shape overlay if it interferes */
.gt-game-bg-section .text-shape {
    display: none !important;
}

/* Modern Typography - Import Inter font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* Hero section text improvements */
.hero-content p {
    text-transform: none !important;
    font-family: "Inter", "Segoe UI", sans-serif !important;
}


/* Global Typography Fixes - Remove forced uppercase for better readability */
body {
    text-transform: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
}

p,
.gt-about-text,
.gt-footer-content p,
.footer-nav a {
    text-transform: none !important;
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Hero Animation - Scale + Fade Effect */
@keyframes heroScaleFade {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content h6,
.hero-content h1,
.hero-content p,
.hero-content .gt-hero-button {
    animation: heroScaleFade 1s ease-out forwards !important;
    transform: none !important;
}

.hero-content h6 {
    animation-delay: 0.2s !important;
    opacity: 0;
}

.hero-content h1 {
    animation-delay: 0.4s !important;
    opacity: 0;
}

.hero-content p {
    animation-delay: 0.6s !important;
    opacity: 0;
}

.hero-content .gt-hero-button {
    animation-delay: 0.8s !important;
    opacity: 0;
}

/* Disable WOW slide animations in hero */
.hero-content [class*="fadeInUp"],
.hero-content [class*="slideIn"] {
    animation-name: heroScaleFade !important;
}

/* Enhanced 3D Text Shadows - Banner/Hero */
.hero-content h1 {
    text-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(93, 63, 211, 0.6),
        0 0 80px rgba(93, 63, 211, 0.3) !important;
}

.hero-content h6 {
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(255, 215, 0, 0.4) !important;
}

.hero-content p {
    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.95),
        0 0 15px rgba(0, 0, 0, 0.8) !important;
}

/* Enhanced 3D Text Shadows - About Section (Mage/Archer area) */
.gt-about-section .gt-section-title h6,
.gt-about-section .gt-section-title h2,
.gt-about-section .tx-title {
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(93, 63, 211, 0.5) !important;
}

.gt-about-section .gt-about-text,
.gt-about-section p {
    text-shadow:
        2px 2px 5px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.7) !important;
}

/* About Box items */
.gt-about-box h5,
.gt-about-box .content h5 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

/* Game Section Text */
.gt-games-content h6,
.gt-games-content h2,
.gt-games-content p {
    text-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.95),
        0 0 30px rgba(0, 0, 0, 0.8) !important;
}

/* Video Section Text */
.gt-video-section h6,
.gt-video-section h2 {
    text-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(93, 63, 211, 0.4) !important;
}

/* Remove Video Wrapper Background/Gradient */
.gt-video-wrapper::before {
    display: none !important;
    background: none !important;
}

.gt-video-section {
    background: transparent !important;
}

.gt-video-wrapper {
    background: transparent !important;
    padding: 0 !important;
}

/* ========================================
   ASHES OF CREATION DROPDOWN MENU STYLES
   ======================================== */

/* Submenu Container */
.header-main .main-menu ul li.has-dropdown .submenu,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu {
    min-width: 260px !important;
    padding: 8px 0 !important;
    background: #0c0c0f !important;
    border: 1px solid rgba(93, 63, 211, 0.4) !important;
    border-top: 3px solid #5D3FD3 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(93, 63, 211, 0.2) !important;
}

/* Submenu Items */
.header-main .main-menu ul li.has-dropdown .submenu li,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin: 0 !important;
}

.header-main .main-menu ul li.has-dropdown .submenu li:last-child,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li:last-child {
    border-bottom: none !important;
}

/* Submenu Links - MAIN STYLING */
.header-main .main-menu ul li.has-dropdown .submenu li a,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li a {
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    color: #a0a0a0 !important;
    padding: 12px 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    transition: all 0.2s ease !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Submenu Links - Hover */
.header-main .main-menu ul li.has-dropdown .submenu li a:hover,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li a:hover {
    background: linear-gradient(90deg, rgba(93, 63, 211, 0.2) 0%, transparent 100%) !important;
    color: #fff !important;
    padding-left: 22px !important;
}

/* Submenu Icons - Fixed width for alignment */
.header-main .main-menu ul li.has-dropdown .submenu li a i,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li a i {
    width: 20px !important;
    min-width: 20px !important;
    text-align: center !important;
    font-size: 14px !important;
    color: #5D3FD3 !important;
    flex-shrink: 0 !important;
}

/* First item - "Oyun Hakkında" special styling */
.header-main .main-menu ul li.has-dropdown .submenu li:first-child a,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li:first-child a {
    font-weight: 600 !important;
    color: #d4af37 !important;
    padding-bottom: 14px !important;
    margin-bottom: 4px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.header-main .main-menu ul li.has-dropdown .submenu li:first-child a:hover,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li:first-child a:hover {
    color: #f5d878 !important;
}

/* Locked item style (for non-logged users) */
.header-main .main-menu ul li.has-dropdown .submenu li a[style*="color: #888"],
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li a[style*="color: #888"] {
    opacity: 0.5 !important;
    font-style: italic !important;
}

/* Remove the default ::before line effect */
.header-main .main-menu ul li.has-dropdown .submenu li a::before,
.mean__menu-wrapper .main-menu ul li.has-dropdown .submenu li a::before {
    display: none !important;
    content: none !important;
}

/* Dropdown Arrow for parent menu item */
.header-main .main-menu ul li.has-dropdown>a::after,
.mean__menu-wrapper .main-menu ul li.has-dropdown>a::after {
    content: '\f107' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    margin-left: 6px !important;
    font-size: 11px !important;
    transition: transform 0.3s ease !important;
    opacity: 0.7;
}

.header-main .main-menu ul li.has-dropdown:hover>a::after,
.mean__menu-wrapper .main-menu ul li.has-dropdown:hover>a::after {
    transform: rotate(180deg) !important;
    opacity: 1;
}

/* Helper to hide dropdown icon */
.hide-dropdown-icon > a::after {
    display: none !important;
    content: none !important;
}