/* ========================================
   Custom Overrides
   Add your custom styles here
   ======================================== */

/* Example: Custom colors */
/*
:root {
    --color-primary: #your-color;
}
*/

/* Example: Custom font */
/*
body {
    font-family: 'Your Font', sans-serif;
}
*/

/* ========================================
   Breadcrumb Styles (moved from base.html inline)
   ======================================== */
.breadcrumb { padding: 0.75rem 0; margin-bottom: 0; }
.breadcrumb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 0.9rem; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding: 0 0.5rem; color: #6c757d; }
.breadcrumb-item a { color: #4a9d5b; text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: #6c757d; }

/* ========================================
   HTML Sitemap Styles
   ======================================== */
.sitemap-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--color-bg-secondary, #f5f5f5);
    border-radius: 8px;
}

.sitemap-nav strong {
    margin-right: 0.5rem;
}

.sitemap-nav a {
    padding: 0.25rem 0.5rem;
    background: var(--color-primary, #10b981);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
}

.sitemap-nav a:hover {
    opacity: 0.9;
}

.sitemap-section {
    margin: 2rem 0;
}

.sitemap-section h2 {
    border-bottom: 2px solid var(--color-primary, #10b981);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sitemap-letter-group {
    margin-bottom: 1.5rem;
}

.sitemap-letter-group h3 {
    color: var(--color-primary, #10b981);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.25rem 1rem;
}

.sitemap-list li {
    padding: 0.25rem 0;
}

.sitemap-list a {
    color: var(--color-text, #333);
    text-decoration: none;
}

.sitemap-list a:hover {
    color: var(--color-primary, #10b981);
    text-decoration: underline;
}

.sitemap-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

/* ========================================
   WeedVader CTA
   ======================================== */
.weedvader-cta {
    border: 1px solid rgba(74, 157, 91, 0.3);
    background: rgba(74, 157, 91, 0.05);
}
.weedvader-desc {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.75rem;
}
.btn-weedvader {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    background: #4a9d5b;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.btn-weedvader:hover {
    background: #3d8a4e;
    color: #fff;
}

/* ========================================
   AI Share Buttons
   ======================================== */
.ai-share-box h3 {
    margin-bottom: 0.5rem;
}
.ai-share-desc {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.75rem;
}
.ai-share-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}
.ai-share-btn {
    display: block;
    text-align: center;
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 5px;
    transition: opacity 0.2s, transform 0.1s;
    color: #fff;
    line-height: 1.3;
}
.ai-share-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}
.ai-btn-chatgpt { background: #10a37f; }
.ai-btn-perplexity { background: #1a73e8; }
.ai-btn-claude { background: #d97706; }
.ai-btn-google { background: #4285f4; }
.ai-btn-grok { background: #1d1d1f; }
.ai-btn-gemini { background: #8b5cf6; }
.ai-share-inline {
    margin: 1rem 0;
}
.ai-share-inline .ai-share-grid {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
    .ai-share-inline .ai-share-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Research & References Section
   ======================================== */
.strain-references {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light, #c8ccd1);
}
.strain-references h2 {
    border: none;
    margin-bottom: 0.75rem;
}
.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.reference-card {
    background: var(--color-bg-secondary, #f8f9fa);
    border: 1px solid var(--color-border-light, #c8ccd1);
    border-radius: var(--radius-md, 6px);
    padding: 1rem 1.25rem;
}
.reference-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-light, #c8ccd1);
    padding-bottom: 0.4rem;
}
.reference-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.reference-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}
.reference-list li:last-child {
    border-bottom: none;
}
.reference-list a {
    text-decoration: none;
    color: var(--color-link, #0645ad);
}
.reference-list a::after {
    content: " \2197";
    font-size: 0.75em;
    opacity: 0.6;
}
.reference-list a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Dosage / How to Use Section
   ======================================== */
.dosage-guide {
    line-height: 1.7;
}
.dosage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}
.dosage-card {
    background: var(--color-bg-secondary, #f8f9fa);
    border: 1px solid var(--color-border-light, #c8ccd1);
    border-radius: var(--radius-md, 6px);
    padding: 1rem 1.25rem;
}
.dosage-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    font-weight: 600;
    border-bottom: 1px solid var(--color-border-light, #c8ccd1);
    padding-bottom: 0.4rem;
    color: var(--color-primary, #16a34a);
}
.dosage-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light, #54595d);
}
@media (max-width: 768px) {
    .dosage-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Content Date Display
   ======================================== */
.strain-updated {
    font-size: 0.8rem;
    color: #999;
    margin-left: 0.5rem;
}

/* ========================================
   Accessibility Utilities
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Strain Reviews
   ======================================== */
.strain-reviews {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border-light);
}

.strain-reviews h2 {
    border: none;
    margin-bottom: 20px;
}

/* Review Summary */
.review-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.review-stars .star,
.review-stars-small .star {
    color: var(--color-border);
    font-size: 1.4em;
}

.review-stars .star.filled,
.review-stars-small .star.filled {
    color: #f59e0b;
}

.review-stars-small .star {
    font-size: 1em;
}

.review-avg {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-text);
}

.review-count {
    color: var(--color-text-light);
    font-size: 0.95em;
}

/* Review Form */
.review-form-wrapper {
    margin-bottom: 25px;
}

.review-form-wrapper > summary {
    cursor: pointer;
    list-style: none;
}

.review-form-wrapper > summary::-webkit-details-marker {
    display: none;
}

.review-form {
    margin-top: 15px;
    padding: 20px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.review-form .form-group {
    margin-bottom: 16px;
}

.review-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.95em;
}

/* Star Rating Input (CSS-only interactive stars) */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.8em;
    color: var(--color-border);
    transition: color 0.15s;
    line-height: 1;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input[type="radio"]:checked ~ label {
    color: #f59e0b;
}

.review-form button[type="submit"] {
    margin-top: 5px;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    padding: 16px 20px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    color: var(--color-text);
}

.review-date {
    color: var(--color-text-light);
    font-size: 0.85em;
    margin-left: auto;
}

.review-method {
    display: inline-block;
    font-size: 0.8em;
    color: var(--color-text-light);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.review-text {
    margin: 8px 0 0;
    line-height: 1.6;
    color: var(--color-text);
}

.empty-state {
    color: var(--color-text-light);
    font-style: italic;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .review-summary {
        flex-wrap: wrap;
        gap: 6px;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .review-date {
        margin-left: 0;
    }
}
