/* ================= Base Reset ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body, html {
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Hide scrollbars for full app-like feel */
    background-color: #050505;
    color: #ffffff;
}

/* ================= Background Setup ================= */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-image {
    width: 100%;
    height: 100%;
    /* Try loading arkaplan.png. Fallback is the background-color of body */
    background: url('arkaplan.png') center/cover no-repeat;
    /* Subtle zoom animation over time */
    animation: bgZoom 30s infinite alternate ease-in-out;
}

/* Add a dark gradient over the image to ensure text readability */
.background-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 15, 0.4) 0%, rgba(5, 5, 5, 0.9) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ================= Moon & Stars ================= */
.moon {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, #fff 0%, #f0f0f0 100%);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.4), 
                0 0 150px rgba(255, 255, 255, 0.2),
                inset -20px -20px 50px rgba(0,0,0,0.1);
    z-index: 5;
    opacity: 1;
    transition: all 0.5s ease;
}

.moon::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    width: 150px;
    height: 150px;
    background: transparent;
    border-radius: 50%;
    box-shadow: inset 20px -15px 40px rgba(0, 0, 0, 0.6);
}

.stars-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    filter: blur(0.5px);
    animation: twinkleSway var(--duration) infinite ease-in-out;
}

@keyframes twinkleSway {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.6) translate(0, 0); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3) translate(10px, 10px);
    }
}

/* ================= Variables ================= */
:root {
    --primary-glow: rgba(140, 82, 255, 0.6);
    --secondary-glow: rgba(62, 180, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ================= Layout Container ================= */
.main-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ensure top is always accessible */
    min-height: 100%;
    position: relative;
    z-index: 10;
    padding: 10vh 2rem; /* Large vertical padding for safe centering feel */
    overflow-y: auto; 
    scroll-behavior: smooth;
}

/* ================= Header ================= */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2e7d32, #1b5e20); /* Soft forest green */
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.4);
    animation: floatingLogo 4s infinite ease-in-out, skeletonPulse 1.5s infinite ease-in-out;
    transform: translateX(12px); /* Further nudge to the right */
    position: relative;
    overflow: hidden;
}

/* New: Top-level overlay frame to mask image edges */
.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 6px solid #050505;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 2;
}

@keyframes skeletonPulse {
    0%, 100% { background: rgba(83, 252, 24, 0.1); }
    50% { background: rgba(83, 252, 24, 0.2); }
}

.profile-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #050505;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    transform: scale(1.2); /* Zoom-in effect */
}

.profile-logo.loaded {
    opacity: 1;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #a0a0a0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.brand-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #a0a0a0;
    letter-spacing: 1px;
}

/* ================= Links Grid ================= */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 450px;
}

/* Custom Branded Buttons */
.brand-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8rem 1.2rem;
    gap: 1.5rem;
    text-decoration: none;
    background: rgba(20, 20, 25, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-btn:before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    background: var(--brand-color);
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 20px;
}

.brand-btn:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--brand-color);
    box-shadow: 0 10px 30px var(--brand-glow), inset 0 0 15px var(--brand-glow);
}

.brand-btn:hover:before {
    opacity: 0.15;
}

.icon-container {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--brand-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.brand-btn:hover .icon-container {
    background: var(--brand-color);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    border-color: transparent;
    box-shadow: 0 0 20px var(--brand-color);
}

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

.btn-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    transition: color 0.3s ease;
}

/* Base Beam Animation on Hover */
.hover-beam {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.brand-btn:hover .hover-beam {
    left: 150%;
}

/* Brands CSS Variables */
.brand-instagram {
    --brand-color: #E1306C;
    --brand-glow: rgba(225, 48, 108, 0.5);
}
.brand-instagram:hover .icon-container {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 0 20px #dc2743;
}

.brand-kick {
    --brand-color: #53FC18;
    --brand-glow: rgba(83, 252, 24, 0.4);
}
.brand-kick:hover .icon-container {
    background: #111;
    color: #fff;
    box-shadow: -3px -3px 0 #53FC18, 3px 3px 0 rgba(255, 255, 255, 0.4);
}

.brand-tiktok {
    --brand-color: #00f2fe;
    --brand-glow: rgba(0, 242, 254, 0.5);
}
.brand-tiktok:hover .icon-container {
    background: #111;
    color: #fff;
    box-shadow: -3px -3px 0 #00f2fe, 3px 3px 0 #fe0979;
}

.brand-youtube {
    --brand-color: #FF0000;
    --brand-glow: rgba(255, 0, 0, 0.6);
}

.brand-oyuneks {
    --brand-color: #00d2ff;
    --brand-glow: rgba(0, 210, 255, 0.5);
}

.brand-bynogame {
    --brand-color: #ff4500;
    --brand-glow: rgba(255, 69, 0, 0.5);
}

/* Donation Buttons Specific Icon Tweaks */
.brand-oyuneks .icon-container,
.brand-bynogame .icon-container {
    width: 52px;
    height: 52px;
    border-radius: 6px; /* Mostly square but with a tiny smooth edge */
    margin-left: -8px; /* Shift to the left */
}

.brand-oyuneks .icon-container img,
.brand-bynogame .icon-container img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-oyuneks:hover .icon-container img,
.brand-bynogame:hover .icon-container img {
    transform: scale(1.15);
}

/* ================= Sponsorship Section ================= */
.sponsorship-wrapper {
    width: 100%;
    max-width: 450px;
    margin-top: 5rem !important; /* Increased spacing between sections */
}

.sponsor-card {
    position: relative;
    background-color: #0b1120; /* Deep Navy Blue */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #ef4444; /* Sponsor accent color - sleeker */
    border-radius: 4px; /* Sharp rectangular corners */
    padding: 0.8rem 1rem; /* More compact padding */
    display: flex;
    align-items: center;
    gap: 1rem; /* Reduced gap */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sponsor-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.15);
}

.sponsor-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), transparent 70%);
}

.sponsor-logo-container {
    width: 65px; /* Slightly larger container */
    height: 65px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sponsor-logo-img {
    width: 48px; /* Enlarged logo */
    height: 48px;
    object-fit: contain;
}

.sponsor-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.sponsor-label {
    font-size: 0.65rem; /* Smaller label */
    color: #ef4444;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0px;
}

.sponsor-name-text {
    font-size: 1.05rem; /* Sleeker font size */
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.coupon-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.coupon-code {
    background: #ef4444;
    color: #fff;
    padding: 3px 10px;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: copy;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
    position: relative;
    z-index: 5;
}

.coupon-code:hover {
    background: #ff5f5f;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.coupon-code i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.coupon-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.btn-logo {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.brand-btn:hover .btn-logo {
    transform: scale(1.2);
}

/* ================= Donation Section ================= */
.donation-section {
    width: 100%;
    max-width: 450px;
    margin-top: 1.5rem;
    padding: 0 10px;
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

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

/* ================= Business / Sponsorship Section ================= */
.business-section {
    width: 100%;
    max-width: 450px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.business-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.business-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255,255,255,0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.business-btn i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.4s ease;
}

.business-btn:hover i {
    color: #fff;
}

.business-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.business-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.business-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

/* ================= Footer ================= */
.footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* ================= Particles (JS) ================= */
.particles-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: popAndFade linear forwards;
}

/* ================= Animations ================= */
@keyframes bgZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes floatingLogo {
    0%, 100% { transform: translateY(0) translateX(12px); box-shadow: 0 0 20px rgba(83, 252, 24, 0.4); }
    50% { transform: translateY(-10px) translateX(12px); box-shadow: 0 0 40px rgba(83, 252, 24, 0.2); }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes popAndFade {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

@keyframes continuousPulse {
    0% { box-shadow: 0 0 0 0 var(--brand-glow); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ================= Utility Animation Classes ================= */
.pop-in { animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; }
.fade-in { animation: fadeIn 2s ease forwards; opacity: 0; animation-delay: 1s; }
.slide-up { animation: slideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; opacity: 0; }
.pulse-continuous { animation: continuousPulse 2s 1s infinite; }

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

.d1 { animation-delay: 0.5s; }
.d2 { animation-delay: 0.7s; }
.d3 { animation-delay: 0.9s; }
.d4 { animation-delay: 1.1s; }

/* ================= Toast Notification ================= */
#success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(83, 252, 24, 0.9);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(83, 252, 24, 0.3);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

#success-toast.toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#success-toast i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .brand-btn { padding: 0.8rem 1rem; }
    .brand-title { font-size: 1.8rem; }
    .business-btn { padding: 1rem; }
    .business-title { font-size: 1rem; }
    #success-toast { width: 90%; font-size: 0.9rem; padding: 0.8rem 1rem; }
    .moon {
        top: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    .moon::after {
        width: 60px;
        height: 60px;
    }
}
