/* Global Variables */
:root {
    --primary-color: #3E2723; /* Dark Chocolate */
    --secondary-color: #D4AF37; /* Gold */
    --light-bg: #F5F5F5;
    --text-color: #333;
    --white: #ffffff;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Header Wrapper */
.header-wrapper {
    background-color: #000; /* Black background */
    padding-bottom: 0; /* Removed extra padding */
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up-animation {
    opacity: 0;
    animation: slideUpFade 0.8s ease-out forwards;
}

/* Top Bar */
.top-bar {
    background-color: transparent; 
    color: #fff; /* White text */
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle light line */
}

/* Header */
.main-header {
    background-color: #fff; /* White header inside black wrapper */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin-top: 0; /* Align with top bar */
    width: 100%;
    position: relative; /* For animated line */
}

/* Animated Gold Line at Bottom of Header */
.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%; /* Center the line */
    transform: translateX(-50%); /* Center alignment */
    width: 50%; /* Reduced width (yarı yarıya daralt) */
    height: 1px; /* Very thin line */
    /* Rich Metallic Gold Gradient */
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0) 0%, /* Fade out at ends */
        #D4AF37 20%,
        #FFD700 50%, 
        #D4AF37 80%, 
        rgba(212, 175, 55, 0) 100%); /* Fade out at ends */
    background-size: 200% auto;
    animation: goldLineFlow 2s linear infinite; /* Faster animation */
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.8); /* Stronger Gold glow */
    z-index: 1001;
}

@keyframes goldLineFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.main-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 0; /* Remove radius when sticky */
    padding: 10px 0;
}

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

.logo h1 {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    position: relative;
    padding: 5px 10px;
    line-height: 1.4;
    display: inline-block;
    
    /* Full Darker Gold Gradient Text */
    background: linear-gradient(to bottom, 
        #996515 0%, /* Golden Brown */
        #DAA520 25%, /* Goldenrod */
        #B8860B 50%, /* Dark Goldenrod */
        #DAA520 75%, 
        #996515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); /* Stronger shadow */
}

/* Gold Shine Animation for Logo Text */
.logo h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%; /* Wider shine */
    height: 100%;
    /* Intense White/Gold Flash */
    background: linear-gradient(to right, 
        rgba(255,255,255,0) 0%, 
        rgba(255, 255, 255, 0.9) 50%, /* Bright White Center */
        rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 2.5s infinite; /* Faster animation */
    pointer-events: none;
    display: block; 
    mix-blend-mode: overlay; /* Better blending with gold text */
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

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

/* Old Price Strikethrough */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 5px;
}

/* Auth Pages (Login/Register) */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0e0e0 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Background Shapes for Auth */
.auth-wrapper::before, .auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.auth-wrapper::before {
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.1); /* Gold tint */
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.auth-wrapper::after {
    width: 200px;
    height: 200px;
    background: rgba(62, 39, 35, 0.1); /* Chocolate tint */
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(10px, 20px); }
    100% { transform: translate(0, 0); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h3 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
