/*
Theme Name: FashionMeg
Theme URI: https://fashionmeg.com
Author: FashionMeg Team
Author URI: https://fashionmeg.com
Description: A lightweight, responsive WordPress theme tailored for fashion blogs with elegant design, customizable branding, and dynamic navigation.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fashionmeg
Tags: blog, fashion, responsive, custom-menu, custom-logo, custom-colors, featured-images, threaded-comments

FashionMeg is a minimal, magazine-style WordPress theme designed specifically for fashion bloggers.
Features include customizable branding (logo, colors, header layout), dynamic navigation menus,
and a clean responsive design optimized for visual content.
*/

:root {
    --primary-color: #d4af37;
    --text-color: #333333;
    --background-color: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

.site-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-logo-left .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-centered .header-inner {
    text-align: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-centered .site-branding {
    justify-content: center;
    margin-bottom: 15px;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    font-family: var(--font-secondary);
}

.site-title a {
    color: var(--text-color);
}

.site-description {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0;
}

.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 3px;
}

.menu-toggle:hover {
    opacity: 0.9;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    content: "✕";
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.header-centered .primary-menu {
    justify-content: center;
}

.primary-menu a {
    color: var(--text-color);
    padding: 8px 0;
    display: block;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: var(--primary-color);
    font-weight: 600;
}

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

.featured-post {
    margin-bottom: 60px;
}

.featured-post .post-thumbnail {
    margin-bottom: 20px;
}

.featured-post .post-thumbnail img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.post-item {
    background: white;
}

.post-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    margin-bottom: 10px;
}

.entry-title a {
    color: var(--text-color);
}

.entry-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.entry-content {
    margin-top: 30px;
}

.entry-content > * {
    margin-bottom: 1.5rem;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-categories a {
    background: var(--light-gray);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.post-categories a:hover {
    background: var(--primary-color);
    color: white;
}

.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.archive-description {
    font-size: 1.1rem;
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination .current {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.site-footer {
    background: var(--light-gray);
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.site-info {
    font-size: 0.9rem;
    color: #666;
}

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

.error-404 h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

    .header-logo-left .header-inner {
        flex-wrap: wrap;
    }

    .main-navigation {
        width: 100%;
        order: 3;
    }

    .primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        background: var(--light-gray);
        padding: 15px;
        border-radius: 5px;
    }

    .primary-menu.toggled {
        display: flex;
    }

    .primary-menu a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .primary-menu li:last-child a {
        border-bottom: none;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .post-grid {
        grid-template-columns: 1fr;
    }

    .featured-post .post-thumbnail img {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .site-container {
        padding: 0 15px;
    }

    h1 { font-size: 1.75rem; }
    
    .entry-meta {
        flex-direction: column;
        gap: 5px;
    }
}