/* Custom styles for Yae × Lemonade LP */

/* Water ripple effect */
.water-ripple {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 80%,
        rgba(62, 193, 211, 0.1) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 20%,
        rgba(244, 208, 63, 0.1) 0%,
        transparent 50%
    ),
    radial-gradient(
        circle at 40% 40%,
        rgba(31, 58, 147, 0.15) 0%,
        transparent 50%
    );
    animation: rippleMove 20s ease-in-out infinite;
}

@keyframes rippleMove {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.7;
    }
    33% {
        transform: scale(1.1) translate(-10px, -10px);
        opacity: 0.8;
    }
    66% {
        transform: scale(0.9) translate(10px, 5px);
        opacity: 0.6;
    }
}

/* Light particles effect */
.light-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.light-particles::before,
.light-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(244, 208, 63, 0.8);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

.light-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: -5s;
    animation-duration: 20s;
}

.light-particles::after {
    top: 80%;
    right: 15%;
    animation-delay: -10s;
    animation-duration: 25s;
    background: rgba(62, 193, 211, 0.6);
}

@keyframes float {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Glass morphism effect */
.glass-morphism {
    background: rgba(16, 42, 77, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0C1E3A;
}

::-webkit-scrollbar-thumb {
    background: #1F3A93;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3EC1D3;
}

/* Button hover effects */
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
}

/* Product card animations */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3EC1D3, #F4D03F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 30, 58, 0.8);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, #102A4D, #1F3A93);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(62, 193, 211, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cart styles */
.cart-item {
    background: rgba(16, 42, 77, 0.3);
    border: 1px solid rgba(62, 193, 211, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-total {
    background: linear-gradient(135deg, #1F3A93, #3EC1D3);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .product-card {
        margin-bottom: 2rem;
    }
    
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .comparison-cell {
        border-bottom: 1px solid rgba(62, 193, 211, 0.1);
    }
    
    .comparison-cell:last-child {
        border-bottom: none;
    }
    
    .ugc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .cart-sidebar {
        position: relative !important;
        top: auto !important;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .ugc-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .cart-item {
        padding: 0.75rem;
    }
}

/* Focus states for accessibility */
button:focus,
a:focus,
[tabindex]:focus {
    outline: 2px solid #3EC1D3;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #3EC1D3;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-text-muted {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .bg-surface\/30,
    .bg-surface\/40 {
        background: rgba(16, 42, 77, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .water-ripple,
    .light-particles {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    header,
    footer,
    .water-ripple,
    .light-particles,
    button {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-primary-bg,
    .bg-surface,
    .bg-primary {
        background: white !important;
    }
    
    .text-text-primary,
    .text-text-muted {
        color: black !important;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(244, 208, 63, 0.3);
    border-radius: 50%;
    border-top-color: #F4D03F;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* UGC wall styles */
.ugc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.ugc-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(31, 58, 147, 0.3), rgba(62, 193, 211, 0.3));
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* FAQ styles */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #FFFFFF;
    width: 100%;
}

.faq-question:hover {
    color: #3EC1D3;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: rgba(255, 255, 255, 0.75);
    padding-top: 0;
    line-height: 1.6;
}

.faq-answer.open {
    max-height: 200px;
    padding-top: 1rem;
}

/* Comparison table styles */
.comparison-table {
    background: rgba(16, 42, 77, 0.3);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(62, 193, 211, 0.2);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: rgba(62, 193, 211, 0.1);
}

.comparison-cell {
    background: rgba(16, 42, 77, 0.5);
    padding: 1rem;
    text-align: center;
}

.comparison-header {
    background: linear-gradient(135deg, #1F3A93, #3EC1D3);
    font-weight: 600;
}

/* Price display */
.price-display {
    font-size: 2rem;
    font-weight: bold;
    color: #F4D03F;
}

.price-original {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-popular {
    background: #F4D03F;
    color: #0C1E3A;
}

.badge-limited {
    background: #3EC1D3;
    color: #0C1E3A;
}

.badge-standard {
    background: rgba(255, 255, 255, 0.75);
    color: #0C1E3A;
}

.badge-beginner {
    background: #F4D03F;
    color: #0C1E3A;
}

/* YouTube Video Styles */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(31, 58, 147, 0.2), rgba(62, 193, 211, 0.2));
}

.video-container iframe {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.video-container:hover iframe {
    transform: scale(1.02);
}

/* Music platform links */
.music-platforms a {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(16, 42, 77, 0.3);
    border: 1px solid rgba(62, 193, 211, 0.2);
    transition: all 0.3s ease;
}

.music-platforms a:hover {
    background: rgba(62, 193, 211, 0.2);
    border-color: rgba(62, 193, 211, 0.4);
    transform: translateY(-2px);
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .aspect-video {
        aspect-ratio: 16 / 9;
        border-radius: 0.75rem;
    }
    
    .music-platforms {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .music-platforms a {
        justify-content: center;
        padding: 0.75rem 1.5rem;
    }
}