/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
    color: white;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-content h1 i {
    margin-right: 1rem;
    color: #fbbf24;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 300;
}

.date {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

/* Main content */
.main {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Loading styles */
.loading {
    text-align: center;
    color: white;
    padding: 4rem 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

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

/* Error styles */
.error {
    text-align: center;
    color: white;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.error h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.retry-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Flavors grid */
.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Flavor card styles */
.flavor-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.flavor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.flavor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.shop-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.shop-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.shop-icon i {
    color: white;
    font-size: 1.5rem;
}

.shop-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
}

.flavor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.flavor-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.flavor-description.no-description {
    font-style: italic;
    opacity: 0.7;
}

.flavor-date {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.flavor-date i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Flavor card link styles */
.flavor-card-link {
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.08), 0 1.5px 4px rgba(118, 75, 162, 0.08);
    transition: transform 0.12s cubic-bezier(.4,2,.6,1), box-shadow 0.12s cubic-bezier(.4,2,.6,1), filter 0.12s cubic-bezier(.4,2,.6,1), background 0.12s cubic-bezier(.4,2,.6,1);
    will-change: transform, box-shadow, filter, background;
    background: rgba(255, 255, 255, 0.95);
}

.flavor-card-link:hover, .flavor-card-link:focus {
    background: rgb(224, 211, 255); /* subtle light purple */
}

.flavor-card-link:active {
    transform: scale(0.95) rotate(1deg);
    filter: brightness(0.96);
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .main {
        padding: 2rem 1rem;
    }
    
    .flavors-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .flavor-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .flavor-card {
        padding: 1.25rem;
    }
    
    .flavor-name {
        font-size: 1.5rem;
    }
}

/* Animation for cards appearing */
.flavor-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.flavor-card:nth-child(1) { animation-delay: 0.1s; }
.flavor-card:nth-child(2) { animation-delay: 0.2s; }
.flavor-card:nth-child(3) { animation-delay: 0.3s; }
.flavor-card:nth-child(4) { animation-delay: 0.4s; }
.flavor-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legal/content pages */
.legal-content {
    max-width: 800px;
}

.legal-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.legal-section h2:first-of-type {
    margin-top: 1rem;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}
