/* MissEtCie - Stylesheet */

:root {
    --primary: #d4798e;
    --primary-dark: #c0627a;
    --accent: #2d2d2d;
    --text: #333333;
    --text-light: #666666;
    --bg: #ffffff;
    --bg-light: #f5f5f5;
    --bg-alt: #fafafa;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --max-width: 1200px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.site-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-menu li a:hover {
    background: var(--primary);
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Main content */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

.content-area.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    padding: 60px 40px;
    border-radius: var(--radius);
    margin-bottom: 40px;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.95;
}

/* Section titles */
.section-title {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
}

/* Articles grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.article-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-card-content {
    padding: 16px;
}

.article-card-content h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card-content h3 a {
    color: var(--text);
}

.article-card-content h3 a:hover {
    color: var(--primary-dark);
}

.article-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    display: block;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}

.category-card:hover {
    background: var(--primary);
    color: #fff;
    border-left-color: var(--accent);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--accent);
}

.category-card:hover h3 {
    color: #fff;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.category-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Page header */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
}

.page-header h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.category-description {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Single article */
.single-article {
    background: var(--bg);
    margin-bottom: 30px;
}

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

.article-meta {
    margin-bottom: 10px;
}

.article-category {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-category:hover {
    background: var(--accent);
    color: #fff;
}

.article-title {
    font-size: 2rem;
    color: var(--text);
    line-height: 1.3;
}

.article-featured-image {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    display: block;
}

/* Entry content */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.entry-content h3 {
    font-size: 1.25rem;
    color: var(--accent);
    margin: 24px 0 12px;
}

.entry-content h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 20px 0 10px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 24px;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.entry-content figure {
    margin: 20px 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

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

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.entry-content th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.entry-content tr:nth-child(even) {
    background: var(--bg-light);
}

/* Related articles */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

/* Article navigation */
.article-navigation {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-navigation a {
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 500;
}

.pagination a {
    background: var(--bg-light);
    color: var(--text);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
}

.pagination .current {
    background: var(--accent);
    color: #fff;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li a {
    color: var(--text);
    font-size: 0.95rem;
}

.widget-list li a:hover {
    color: var(--primary-dark);
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    color: #fff;
}

/* Responsive */
@media (max-width: 968px) {
    .content-area.with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 20px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 10px 16px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .header-inner {
        padding: 8px 0;
    }

    .logo-img {
        height: 40px;
    }

    .hero-section h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

/* Footer */
.site-footer {
    background: var(--accent);
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-inner {
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* WP content compatibility */
.wp-block-image {
    margin: 20px 0;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 20px 16px 0;
}

.alignright {
    float: right;
    margin: 0 0 16px 20px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 6px;
}
