/* Modern Instagram Theme CSS */
:root {
    --instagram-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --dark-bg: #000000;
    --dark-surface: #121212;
    --dark-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
}

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

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: visible;
    margin: 0;
    padding: 0;
}

/* Animated Background */
.animated-bg {
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    position: relative;
    min-height: 100vh;
    transform: translateZ(0); /* GPU hızlandırma */
    backface-visibility: hidden;
}

/* Gradient Mesh Background */
.gradient-mesh {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 20% 80%, rgba(120, 40, 200, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 20%, rgba(255, 0, 128, 0.3) 0px, transparent 50%),
        radial-gradient(at 40% 40%, rgba(30, 144, 255, 0.3) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(255, 77, 0, 0.3) 0px, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Stars Animation */
.stars {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.star {
    position: absolute;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 4s infinite;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Floating Orbs */
.orb {
    position: fixed !important;
    border-radius: 50%;
    filter: blur(20px); /* Blur azaltıldı performans için */
    opacity: 0.3; /* Opacity azaltıldı */
    animation: float-orb 20s infinite ease-in-out;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes float-orb {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    25% { 
        transform: translate(100px, -100px) scale(1.1); 
    }
    50% { 
        transform: translate(-50px, 50px) scale(0.9); 
    }
    75% { 
        transform: translate(-100px, -50px) scale(1.05); 
    }
}

/* Animation delays for different orbs */
.orb-1 { animation-duration: 25s; }
.orb-2 { animation-duration: 30s; animation-delay: -5s; }
.orb-3 { animation-duration: 35s; animation-delay: -10s; }

/* Stars visibility fix */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 2px white;
    animation: twinkle 4s infinite;
}

/* Fix page height and scroll */
html {
    min-height: 100%;
    position: relative;
}

body {
    min-height: 100vh;
    position: relative;
}

.animated-bg {
    min-height: 100vh;
    position: relative;
}

/* Particle Effect for index page - OPTIMIZED */
.particle {
    position: fixed;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: particle-float 15s infinite linear;
    will-change: transform, opacity;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0) translateX(0);
    }
    5% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(50vh) scale(0.6) translateX(20px);
    }
    95% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.8) translateX(-20px);
    }
}

/* Instagram Gradient Text */
.instagram-gradient {
    background: var(--instagram-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Alternative gradient text for better compatibility */
.text-gradient {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Glass Effect */
.glass-effect {    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Button */
.btn-gradient {
    background: var(--instagram-gradient);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-gradient:hover::before {
    left: 100%;
}

/* Hover Scale Effect */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Animated Blob Background */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--instagram-gradient);
    border-radius: 4px;
}

/* Loading Spinner */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar-modern {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix input text color */
input[type="text"],
input[type="password"],
input[type="email"] {
    color: white !important;
    background-color: rgba(31, 41, 55, 0.5) !important;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(156, 163, 175, 1) !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    color: white !important;
    background-color: rgba(31, 41, 55, 0.8) !important;
}

/* Profile Image Fix */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Fix for Instagram images */
img[src*="instagram"] {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Photo Grid */
.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.1);
}

/* Bootstrap form-control override */
.form-control {
    background-color: rgba(31, 41, 55, 0.5) !important;
    border-color: rgba(75, 85, 99, 1) !important;
    color: white !important;
}

.form-control:focus {
    background-color: rgba(31, 41, 55, 0.8) !important;
    border-color: #a855f7 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(156, 163, 175, 1) !important;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    /* Increase top padding for mobile */
    .pt-24 {
        padding-top: 7rem !important;
    }
    
    /* Hero section spacing */
    .min-h-screen {
        padding-top: 20px;
    }
    
    /* Smaller text on mobile */
    .text-5xl {
        font-size: 2rem !important;
    }
    
    .text-7xl {
        font-size: 2.5rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
    }
    
    /* Better spacing for mobile */
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Make navbar smaller on mobile */
    .navbar-modern {
        padding: 0.5rem 1rem;
    }
    
    /* Stack nav items on mobile */
    .navbar-modern .nav-items {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Adjust grid gaps on mobile */
    .gap-12 {
        gap: 2rem;
    }
    
    /* Center align hero content on mobile */
    .lg\:text-left {
        text-align: center !important;
    }
    
    /* Adjust button sizes on mobile */
    .btn-gradient, .glass-effect {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}/* Login ve Register Sayfaları için Performans Optimizasyonu */
.login-page .star,
.register-page .star {
    animation-duration: 6s !important;
}

.login-page .orb,
.register-page .orb {
    animation-duration: 30s !important;
}

/* Form sayfalarında daha az animasyon */
.login-page .animated-bg,
.register-page .animated-bg {
    animation: none;
}

/* Form elemanları için basit animasyonlar */
.form-control {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
}

/* Maksimum yıldız sayısı kontrolü */
.stars {
    max-height: 100vh;
    overflow: hidden;
}

/* Düşük performanslı cihazlar için */
@media (max-width: 768px) {
    .star {
        animation: none !important;
        opacity: 0.6;
    }
    
    .orb {
        animation: none !important;
        opacity: 0.2;
    }
}

/* Çok düşük performanslı cihazlar için */
@media (prefers-reduced-motion: reduce) {
    .star,
    .orb,
    .gradient-mesh {
        animation: none !important;
    }
    
    .animate__animated {
        animation-duration: 0.3s !important;
    }
}


/* SweetAlert2 Popup Scroll Fix */
.swal2-shown {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.swal2-container {
    overflow-y: auto !important;
}

.swal2-popup {
    position: fixed !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

/* Popup açıkken body scroll engelleme */
body.swal2-shown {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
}

/* Mobil için özel popup ayarları */
@media (max-width: 768px) {
    .swal2-popup {
        max-height: 80vh !important;
        margin: 0 !important;
    }
}
