/* 
 * WEE PHOTOBOOTH - Article Detail Page Styles
 * Page-specific styles for knowledge/article.html
 * Reuses brand variables from base.css and layout from main.css
 */

/* ===== Hero ===== */
.blog-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.1), rgba(255, 107, 107, 0.05));
    text-align: center;
    margin-top: 80px;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.blog-hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--accent-color);
}

/* ===== Article Detail ===== */
.article-detail {
    padding-top: 60px;
    padding-bottom: 60px;
}

.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}

.category {
    background: rgba(232, 180, 184, 0.12);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.date,
.read-time {
    color: var(--light-text);
    font-size: 0.85rem;
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--light-text);
    line-height: 1.6;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

/* ===== Article Content (WordPress HTML) ===== */
.article-content {
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 35px 0 15px;
    color: var(--text-color);
}

.article-content h3 {
    font-size: 1.35rem;
    margin: 30px 0 12px;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 25px 0;
    background: rgba(232, 180, 184, 0.06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--light-text);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--accent-color);
}

/* ===== Tips Box ===== */
.article-tips {
    background: rgba(232, 180, 184, 0.06);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
}

.article-tips h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2rem;
}

/* ===== Back Button ===== */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 40px;
    padding: 0.8rem 1.5rem;
    background: rgba(232, 180, 184, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== States ===== */
.loading {
    text-align: center;
    padding: 100px 20px;
    color: var(--light-text);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: var(--border-radius);
    margin: 20px 0;
}

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

.not-found {
    text-align: center;
    padding: 80px 20px;
}

.not-found h2 {
    color: var(--text-color);
    margin-bottom: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 40px;
        margin-top: 70px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-image {
        max-height: 300px;
    }

    .search-input {
        padding: 12px 15px;
    }
}
