/**
 * Flavor Starter - Template-specific Styles
 * Extracted from inline <style> blocks for better caching
 */

/* ========================================
   Single Article Page
   ======================================== */
.fs-article-page {
    padding: 20px 0 60px;
    background: #f8f9fa;
}

.fs-article-page .fs-container {
    max-width: 1200px;
}

.fs-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.fs-article-header {
    padding: 30px 40px 20px;
}

.fs-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.fs-article-category {
    background: var(--fs-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.fs-article-category:hover {
    opacity: 0.85;
}

.fs-article-date {
    color: #888;
}

.fs-article-reading-time {
    color: #888;
}

.fs-article-author-inline {
    color: #555;
    font-weight: 500;
}

.fs-article-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
}

.fs-article-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 12px 0 0;
}

.fs-article-featured {
    margin: 0;
}

.fs-article-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.fs-article-caption {
    padding: 10px 20px;
    font-size: 13px;
    color: #888;
    text-align: center;
    background: #f8f9fa;
}

.fs-article-content {
    padding: 25px 40px 40px;
    font-size: 16px;
    line-height: 1.9;
    color: #333;
}

.fs-article-content p {
    margin-bottom: 1.5em;
}

.fs-article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 1em;
    color: #1a1a1a;
}

.fs-article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 1.5em 0 0.8em;
    color: #1a1a1a;
}

.fs-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.fs-article-content blockquote {
    border-left: 4px solid var(--fs-primary);
    padding: 15px 25px;
    margin: 1.5em 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.fs-article-content ul,
.fs-article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.fs-article-content li {
    margin-bottom: 0.5em;
}

.fs-article-footer {
    padding: 30px 40px 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.fs-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fs-article-tags svg {
    color: #888;
}

.fs-article-tag {
    background: #f0f0f0;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.fs-article-tag:hover {
    background: var(--fs-primary);
    color: #fff;
}

.fs-article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fs-share-text {
    font-size: 13px;
    color: #888;
}

.fs-share-buttons {
    display: flex;
    gap: 8px;
}

.fs-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s;
}

.fs-share-btn:hover {
    transform: scale(1.1);
}

.fs-share-fb {
    background: #1877f2;
}

.fs-share-line {
    background: #06C755;
}

.fs-share-twitter {
    background: #000;
}

.fs-related-section {
    margin: 40px 0 0;
}

.fs-related-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.fs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fs-related-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fs-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.fs-related-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.fs-related-body {
    padding: 15px;
}

.fs-related-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 8px;
}

.fs-related-card-title a {
    color: #333;
    text-decoration: none;
}

.fs-related-card-title a:hover {
    color: var(--fs-primary);
}

.fs-related-date {
    font-size: 12px;
    color: #888;
}

@media (max-width: 768px) {
    .fs-article-page {
        padding: 15px 0 40px;
    }
    
    .fs-article {
        border-radius: 0;
    }
    
    .fs-article-header {
        padding: 25px 20px 20px;
    }
    
    .fs-article-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .fs-article-reading-time {
        padding-left: 0;
        border-left: none;
        width: 100%;
    }
    
    .fs-article-title {
        font-size: 22px;
    }
    
    .fs-article-content {
        padding: 25px 20px;
    }
    
    .fs-article-footer {
        padding: 20px;
        flex-direction: column;
    }
    
    .fs-related-section {
        margin: 25px 0 0;
        padding: 0 15px;
    }
    
    .fs-related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fs-related-card {
        display: flex;
    }
    
    .fs-related-image {
        flex-shrink: 0;
        width: 100px;
    }
    
    .fs-related-image img {
        height: 100%;
        width: 100%;
    }
    
    .fs-related-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ========================================
   Search Page
   ======================================== */
.fs-search-header {
    text-align: center;
    margin-bottom: 30px;
}

.fs-search-title {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.fs-search-title span {
    color: var(--fs-primary);
}

.fs-search-count {
    color: var(--fs-gray-600);
}

.fs-search-form-wrapper {
    max-width: 600px;
    margin: 0 auto 40px;
}

.fs-search-form {
    display: flex;
    gap: 10px;
}

.fs-search-form .fs-form-input {
    flex: 1;
}

.fs-no-results {
    text-align: center;
    padding: 60px 20px;
}

.fs-no-results h2 {
    margin-bottom: 10px;
}

.fs-no-results p {
    color: var(--fs-gray-600);
}

.fs-post-type {
    background: var(--fs-primary);
    color: var(--fs-white);
    padding: 2px 8px;
    border-radius: var(--fs-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   Search Overlay (from header.php)
   ======================================== */
.fs-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.fs-search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.fs-search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.fs-search-overlay.active .fs-search-overlay-inner {
    transform: translateY(0);
}
.fs-search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.fs-search-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.fs-search-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.fs-search-input-wrap svg {
    color: #999;
    flex-shrink: 0;
}
.fs-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1.1rem;
    outline: none;
}
.fs-search-input::placeholder {
    color: #999;
}
.fs-search-submit {
    padding: 12px 28px;
    background: var(--fs-primary, #1e3a5f);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.fs-search-submit:hover {
    opacity: 0.9;
}
.fs-search-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 16px;
}
@media (max-width: 768px) {
    .fs-search-overlay {
        padding-top: 10vh;
    }
    .fs-search-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
    .fs-search-input-wrap {
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
    }
    .fs-search-input-wrap svg {
        display: none;
    }
    .fs-search-input {
        width: 100%;
        padding: 10px 12px;
        font-size: 1rem;
    }
    .fs-search-submit {
        width: 100%;
        padding: 14px;
    }
}
