/**
 * Product View Toggle Styles
 * Gentle, warm styling aligned with Band of Beans voice
 */

/* Toggle Container */
.product-view-toggle {
    display: inline-flex;
    gap: 2px;
    background: #f5f3f0;
    border-radius: 25px;
    padding: 4px;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
}

/* Toggle Buttons */
.product-view-toggle .view-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #7E5D4C;
    font-size: 14px;
    font-weight: 500;
}

.product-view-toggle .view-option:hover {
    background: rgba(184, 134, 94, 0.1);
}

.product-view-toggle .view-option.active {
    background: #B8865E;
    color: white;
}

.product-view-toggle .view-option .icon {
    font-size: 16px;
    opacity: 0.8;
}

/* Content Visibility */
.product.coffee-first-view .story-content {
    display: none;
}

.product.story-first-view .story-content {
    display: block;
}

/* Collapsed State */
.story-content.collapsed,
.essential-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Story Sections */
.producer-story-section,
.cultural-heritage-section,
.historical-context-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #f0ebe6;
}

.producer-story-section h3,
.cultural-heritage-section h3,
.historical-context-section h3 {
    font-family: 'Stardos Stencil', serif;
    color: #7E5D4C;
    margin-bottom: 20px;
}

/* Essential Content Styling */
.essential-content {
    margin: 30px 0;
}

.origin-line {
    font-style: italic;
    color: #B8865E;
    font-size: 18px;
    margin-bottom: 10px;
}

.tasting-notes {
    background: #faf8f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.brewing-method {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7E5D4C;
}

.producer-credit {
    font-size: 14px;
    color: #8B7355;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0ebe6;
}

/* Story Invitation */
.story-invitation {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid #f0ebe6;
}

.story-invitation p {
    color: #8B7355;
    font-style: italic;
    margin-bottom: 15px;
}

.story-invitation .gentle-link {
    background: none;
    border: none;
    color: #B8865E;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.story-invitation .gentle-link:hover {
    color: #7E5D4C;
}

/* Gallery Styling */
.story-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.story-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .product-view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .product-view-toggle .view-option {
        flex: 1;
        justify-content: center;
    }
    
    .product-view-toggle .view-option .label {
        display: none;
    }
    
    .product-view-toggle .view-option .icon {
        font-size: 20px;
    }
}