/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Variables - Bardo Style */
:root {
    --bardo-yellow: #F1C40F;
    --bardo-gold: #D4A545;
    --bardo-brown: #4A3728;
    --bardo-dark-brown: #2C1810;
    --bardo-light-yellow: #FEF9E7;
    --bardo-cream: #FAF0E6;
    --text-primary: #2C1810;
    --text-secondary: #5D4E37;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bardo-light-yellow) 0%, var(--bardo-cream) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--bardo-brown);
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 400;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

a {
    color: #8b5a2b;
    text-decoration: none;
}

a:hover {
    color: #6d4220;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bardo-brown) 0%, var(--bardo-gold) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.header-text {
    text-align: left;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-text {
        text-align: center;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
    }
}

.logo a {
    color: white;
    text-decoration: none;
}

.logo a:hover {
    color: #d4af37;
}

.subtitle {
    font-size: 1.1rem;
    color: #d4af37;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Main content */
.main {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--bardo-brown);
    font-weight: 400;
}

/* Premium tea showcase */
.premium-section {
    margin-bottom: 4rem;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Tea cards */
.tea-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(212, 165, 69, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--bardo-gold);
}

.tea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 165, 69, 0.3);
    border-color: var(--bardo-yellow);
}

.tea-card.premium {
    border-color: var(--bardo-yellow);
}

.tea-card.recommended {
    border-color: var(--bardo-yellow);
    background: linear-gradient(135deg, white 0%, var(--bardo-light-yellow) 100%);
}

.tea-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.tea-image {
    margin-bottom: 1rem;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    background: var(--bardo-light-yellow);
    border: 1px solid var(--bardo-gold);
}

.tea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tea-card:hover .tea-image img {
    transform: scale(1.05);
}

.tea-name {
    color: #3d2914;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.tea-description {
    margin-bottom: 1.5rem;
}

.tea-description p {
    font-size: 0.95rem;
    color: #5a4a3a;
    margin-bottom: 0.5rem;
}

.tea-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--bardo-gold);
    text-align: center;
    padding: 0.5rem;
    background: var(--bardo-light-yellow);
    border-radius: 6px;
}

/* Selection tree */
.selection-section {
    margin-bottom: 3rem;
}

.question-container {
    text-align: center;
    margin-bottom: 2rem;
}

.question {
    font-size: 1.8rem;
    color: var(--bardo-brown);
    margin-bottom: 2rem;
    font-weight: 400;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.option-button {
    background: white;
    border: 2px solid var(--bardo-gold);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: block;
}

.option-button:hover {
    border-color: var(--bardo-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 69, 0.3);
    background: linear-gradient(135deg, white 0%, var(--bardo-light-yellow) 100%);
    color: inherit;
}

.option-icon {
    color: var(--bardo-gold);
    margin-bottom: 1rem;
}

.option-button h4 {
    color: #3d2914;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.option-button p {
    color: #5a4a3a;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--bardo-gold);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--bardo-brown);
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    color: var(--bardo-gold);
}

/* Recommendations */
.recommendations-section {
    text-align: center;
}

.tea-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button.primary {
    background: linear-gradient(135deg, var(--bardo-gold) 0%, var(--bardo-yellow) 100%);
    color: var(--bardo-brown);
    font-weight: bold;
}

.button.primary:hover {
    background: #6d4220;
    color: white;
}

.button.secondary {
    background: transparent;
    color: #8b5a2b;
    border: 2px solid #8b5a2b;
}

.button.secondary:hover {
    background: var(--bardo-gold);
    color: white;
}

.button.outline {
    background: transparent;
    color: #8b5a2b;
    border: 1px solid #8b5a2b;
}

.button.outline:hover {
    background: #f8f4e6;
    color: #6d4220;
}

/* Navigation buttons */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Error section */
.error-section {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #3d2914;
    color: #d4af37;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .question {
        font-size: 1.5rem;
    }
    
    .premium-grid,
    .tea-grid {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-button {
        padding: 1.5rem;
    }
    
    .tea-card {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .question {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .option-button {
        padding: 1.2rem;
    }
    
    .tea-card {
        padding: 1.2rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .action-buttons {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .tea-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
