/* Components CSS */

/* Yellow Glass Effect for Buttons */
.yellow-glass-effect {
    background: rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 
        0 8px 32px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.yellow-glass-effect:hover {
    background: rgba(212, 175, 55, 0.25) !important;
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 12px 40px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px) !important;
}

/* Override any dark hover backgrounds for yellow glass effect */
.yellow-glass-effect:hover {
    background: rgba(212, 175, 55, 0.25) !important;
    backdrop-filter: blur(15px) !important;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s;
}

.card-hover:hover::before {
    left: 100%;
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.1);
}

/* Floating Animation */
.floating-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-12px);
    }
    100% { 
        transform: translateY(0px);
    }
}

/* Scroll Indicator Animations */
.scroll-text {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    animation: rotateRing 4s linear infinite;
    pointer-events: none;
    z-index: -1;
}

/* Mobile scroll indicator fixes */
@media (max-width: 768px) {
    .scroll-text {
        top: -30px;
        font-size: 0.75rem;
        width: 120px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .rotating-ring {
        width: 50px;
        height: 50px;
    }
    
    .scroll-arrow-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .scroll-arrow {
        position: relative;
        z-index: 2;
    }
    
    .pyramid-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .animated-pyramid {
        position: relative;
        z-index: 2;
    }
}

@keyframes rotateRing {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        border-color: rgba(212, 175, 55, 0.6);
    }
    25% {
        transform: translate(-50%, -50%) rotate(90deg);
        border-color: rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        border-color: rgba(212, 175, 55, 0.6);
    }
    75% {
        transform: translate(-50%, -50%) rotate(270deg);
        border-color: rgba(212, 175, 55, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        border-color: rgba(212, 175, 55, 0.6);
    }
}

.scroll-arrow-container {
    position: relative;
    display: inline-block;
}

.scroll-arrow {
    animation: scrollBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

@keyframes scrollBounce {
    0% { 
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-8px) scale(1.05);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
}

.scroll-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0% { 
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% { 
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.pyramid-container {
    position: relative;
    display: inline-block;
}

.animated-pyramid {
    animation: pyramidRotate 6s linear infinite;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.3));
}

@keyframes pyramidRotate {
    0% { 
        transform: rotateY(0deg) scale(1);
    }
    25% { 
        transform: rotateY(90deg) scale(1.02);
    }
    50% { 
        transform: rotateY(180deg) scale(1);
    }
    75% { 
        transform: rotateY(270deg) scale(1.02);
    }
    100% { 
        transform: rotateY(360deg) scale(1);
    }
}

.pyramid-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    animation: pyramidGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pyramidGlow {
    0% { 
        opacity: 0.05;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% { 
        opacity: 0.05;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Premium Glow Effects */
.premium-glow {
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.1),
        0 0 60px rgba(212, 175, 55, 0.05);
}

/* Weather Mini Cards */
.weather-mini-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.weather-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Ancient Egypt Image Enhancement */
.ancient-egypt-enhancement {
    filter: contrast(1.1) saturate(1.2) brightness(1.05);
    transition: all 0.7s ease-in-out;
}

.ancient-egypt-enhancement:hover {
    filter: contrast(1.2) saturate(1.3) brightness(1.1);
    transform: scale(1.02);
}

.ancient-egypt-overlay {
    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.1) 0%,
        rgba(139, 69, 19, 0.1) 50%,
        rgba(212, 175, 55, 0.05) 100%
    );
    transition: opacity 0.5s ease-in-out;
}

.ancient-egypt-glow {
    box-shadow: 
        0 0 30px rgba(212, 175, 55, 0.2),
        0 0 60px rgba(139, 69, 19, 0.1),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.premium-text {
    background: linear-gradient(135deg, #D4AF37, #FFD700, #B8860B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Parallax Effects */
.parallax-slow {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-medium {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-fast {
    transform: translateZ(0);
    will-change: transform;
}

/* Mobile-First Animations */
@media (max-width: 768px) {
    .mobile-fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease-out;
    }
    .mobile-fade-in.animate {
        opacity: 1;
        transform: translateY(0);
    }
    .mobile-slide-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.5s ease-out;
    }
    .mobile-slide-left.animate {
        opacity: 1;
        transform: translateX(0);
    }
    .mobile-scale-in {
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.4s ease-out;
    }
    .mobile-scale-in.animate {
        opacity: 1;
        transform: scale(1);
    }
    
    .scroll-text {
        top: -30px;
        font-size: 0.75rem;
    }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .card-hover:hover {
        transform: none;
    }
    
    .hover\\:scale-105:hover {
        transform: none;
    }
    
    .hover\\:bg-egypt-gold:hover {
        background-color: inherit;
    }
    
    /* Optimize scroll animations for mobile */
    .scroll-arrow {
        animation: scrollBounceMobile 2.5s ease-in-out infinite;
    }
    
    .animated-pyramid {
        animation: pyramidRotateMobile 10s linear infinite;
    }
    
    .rotating-ring {
        width: 50px;
        height: 50px;
        animation: rotateRingMobile 4s linear infinite;
    }
    
    /* Mobilde scroll indicator'ı tamamen gizle */
    .floating-animation {
        display: none !important;
    }
    
    /* Add active states for touch */
    .card-hover:active {
        transform: scale(0.98);
    }
    
    button:active,
    a:active {
        transform: scale(0.95);
    }
}


/* Mobile-specific scroll animations */
@keyframes scrollBounceMobile {
    0% { 
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-6px) scale(1.03);
        opacity: 0.8;
    }
    100% { 
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
}

@keyframes pyramidRotateMobile {
    0% { 
        transform: rotateY(0deg) scale(1);
    }
    25% { 
        transform: rotateY(90deg) scale(1.01);
    }
    50% { 
        transform: rotateY(180deg) scale(1);
    }
    75% { 
        transform: rotateY(270deg) scale(1.01);
    }
    100% { 
        transform: rotateY(360deg) scale(1);
    }
}

@keyframes rotateRingMobile {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        border-color: rgba(212, 175, 55, 0.5);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        border-color: rgba(212, 175, 55, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        border-color: rgba(212, 175, 55, 0.5);
    }
}
