/* ============================================
   Content Pages Stylesheet
   - Styles for About, Terms, Help, Contact, Blog pages
   - Gold luxury theme matching existing style.css
   - Light/Dark mode support
   ============================================ */

/* Content Container */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Page Header */
.content-page h1 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #ffe8a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.2;
}

.content-page .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Typography */
.content-page h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #d4af37;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
}

.content-page h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffe8a3;
    margin-top: 35px;
    margin-bottom: 15px;
}

.content-page p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-page ul, .content-page ol {
    margin-left: 25px;
    margin-bottom: 25px;
}

.content-page li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.content-page a {
    color: #d4af37;
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.content-page a:hover {
    color: #ffe8a3;
    border-bottom-color: #ffe8a3;
}

.content-page strong {
    color: #d4af37;
    font-weight: 600;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #d4af37, #ffe8a3);
    color: #0b0b0b;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

/* Contact Email */
.contact-email {
    font-size: 1.4rem;
    color: #d4af37;
    font-weight: 600;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
}

.contact-email:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog Index Grid */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-search-box {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.blog-search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.blog-search-box input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.blog-search-box .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37;
    font-size: 1.2rem;
    pointer-events: none;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.category-btn {
    padding: 10px 24px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.category-btn.active {
    background: linear-gradient(135deg, #d4af37, #ffe8a3);
    color: #0b0b0b;
    border-color: #d4af37;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Blog Card */
.blog-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
}

.blog-card-category {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #d4af37, #ffe8a3);
    color: #0b0b0b;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.blog-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.blog-tag {
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Blog Post Page */
.blog-post-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.blog-post-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #ffe8a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.blog-post-content h2 {
    font-size: 2rem;
    color: #d4af37;
    margin-top: 50px;
    margin-bottom: 20px;
}

.blog-post-content h3 {
    font-size: 1.5rem;
    color: #ffe8a3;
    margin-top: 35px;
    margin-bottom: 15px;
}

.blog-post-content p {
    margin-bottom: 25px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #d4af37;
    text-decoration: none;
    border-bottom: none;
}

.breadcrumbs a:hover {
    color: #ffe8a3;
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--text-secondary);
}

/* Related Posts */
.related-posts {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

.related-posts h2 {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Footer Navigation */
.content-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 20px;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.content-footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.95rem;
}

.content-footer a {
    color: #d4af37;
    text-decoration: none;
    padding: 5px 10px;
    border-bottom: none;
    transition: color 0.3s ease;
}

.content-footer a:hover {
    color: #ffe8a3;
}

.content-footer .separator {
    color: rgba(212, 175, 55, 0.4);
}

.content-footer p {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Light Mode Overrides
   ============================================ */
[data-theme="light"] .content-page,
[data-theme="light"] .blog-container {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

[data-theme="light"] .blog-card {
    background: #f8f8f8;
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .blog-search-box input {
    background: #f8f8f8;
}

[data-theme="light"] .content-footer {
    background: rgba(248, 248, 248, 0.95);
}

/* Dark Mode (default) */
[data-theme="dark"] .content-page,
[data-theme="dark"] .blog-container {
    --bg-primary: #0b0b0b;
    --bg-secondary: #0f0f0f;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
}

[data-theme="dark"] .blog-card {
    background: #0f0f0f;
}

[data-theme="dark"] .blog-search-box input {
    background: #0f0f0f;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 780px) {
    .content-page h1,
    .blog-post-title {
        font-size: 2rem;
    }

    .content-page h2 {
        font-size: 1.6rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .content-footer nav {
        flex-direction: column;
        gap: 10px;
    }

    .content-footer .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .content-page {
        padding: 40px 15px 60px;
    }

    .content-page h1 {
        font-size: 1.8rem;
    }

    .blog-card {
        padding: 20px;
    }
}
