/*
Theme Name: GeneratePress Child - Parti De Rien
Theme URI: https://partiderienlibredetout.fr
Description: Child theme for GeneratePress reproducing the Parti De Rien design
Author: Manus AI
Author URI: https://manus.im
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
Domain Path: /languages
*/

/* Import parent theme styles */
@import url('../generatepress/style.css');

/* ========================================
   ROOT VARIABLES & THEME COLORS
   ======================================== */

:root {
    --bg-dark: #0D0D0D;
    --bg-darker: #111111;
    --bg-light: #FAFAFA;
    --text-main: #1A1A1A;
    --text-muted: #AAAAAA;
    --accent-gold: #C9A84C;
    --accent-hover: #E0B85C;
    --border-light: #E8E8E8;
    
    --cat-finance: #C9A84C;
    --cat-empire: #2ECC71;
    --cat-corps: #E74C3C;
    --cat-mindset: #3498DB;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(13, 13, 13, 0.85);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.8;
    font-size: 17px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    text-decoration: none;
}

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

/* ========================================
   TOP ACCENT BAR
   ======================================== */

.top-accent-bar {
    height: 3px;
    background-color: var(--accent-gold);
    width: 100%;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 80px; /* Reduced height */
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px; /* Slightly smaller */
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.2;
}

.tagline {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ========================================
   NAVIGATION
   ======================================== */

/* WordPress Menu Structure Support */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

/* Dropdown Menus (WordPress standard classes) */
.main-nav ul li ul {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background-color: var(--bg-darker);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-top: 3px solid var(--accent-gold);
    padding: 10px 0;
    transition: all 0.3s ease;
    pointer-events: none;
    flex-direction: column;
    align-items: flex-start;
}

.main-nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-nav ul li ul li {
    width: 100%;
}

.main-nav ul li ul a {
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

/* Indicator for items with children */
.main-nav .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-nav a:hover {
    color: var(--accent-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 15px 30px;
    font-weight: 700;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    min-height: 44px;
    transition: var(--transition-smooth);
}

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background-color: var(--bg-darker);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-cursor {
    display: inline-block;
    width: 3px;
    background: var(--accent-gold);
    animation: blink 0.75s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */

.categories-section {
    padding: 60px 20px;
    background-color: var(--bg-light);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cat-block {
    background-color: #fff;
    padding: 25px;
    border-left: 4px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.cat-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.cat-finance { border-color: var(--cat-finance); }
.cat-empire { border-color: var(--cat-empire); }
.cat-corps { border-color: var(--cat-corps); }
.cat-mindset { border-color: var(--cat-mindset); }

.cat-block h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cat-block p {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.cat-block a {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ========================================
   BLOG LAYOUT (HOME)
   ======================================== */

.home-blog-layout {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.home-main-col {
    width: 70%;
}

.home-sidebar-col {
    width: 30%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.home-article-preview {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #E8E8E8;
}

.home-article-preview:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.home-article-img-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    margin-bottom: 20px;
}

.home-article-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-article-img-wrap .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    margin-bottom: 0;
    z-index: 2;
}

.home-article-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: none;
    font-family: inherit;
}

.home-article-content h2 a {
    color: var(--text-main);
}

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

.home-article-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.home-article-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-read-more {
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 15px;
}

.home-read-more:hover {
    color: var(--accent-hover);
}

.home-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    font-size: 14px;
    font-weight: 600;
    padding: 15px;
    background: #fff;
    border: 1px solid #E8E8E8;
}

.home-pagination a, .home-pagination span {
    color: var(--text-main);
    padding: 5px 10px;
}

.home-pagination a:hover {
    color: var(--accent-gold);
}

.home-pagination .active {
    color: var(--accent-gold);
}

/* ========================================
   SIDEBAR WIDGETS
   ======================================== */

.sidebar-widget {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 10px;
}

/* Author Widget */
.widget-author {
    text-align: center;
}

.widget-author .author-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
}

.widget-author .author-bio {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.widget-author .author-link {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 10px 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.widget-author .author-link:hover {
    background-color: var(--accent-hover);
}

/* Newsletter Widget */
.widget-newsletter {
    background-color: var(--bg-darker);
    color: #fff;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-newsletter h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.widget-newsletter .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-newsletter input {
    padding: 12px 15px;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
}

.widget-newsletter input:focus {
    outline: 2px solid var(--accent-gold);
}

.widget-newsletter button {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 14px;
}

.widget-newsletter button:hover {
    background-color: var(--accent-hover);
}

/* Categories Widget */
.widget-categories {
    list-style: none;
}

.widget-categories li {
    margin-bottom: 10px;
}

.widget-categories a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.widget-categories .cat-tag {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.widget-categories .cat-tag.finance { background-color: var(--cat-finance); }
.widget-categories .cat-tag.empire { background-color: var(--cat-empire); }
.widget-categories .cat-tag.corps { background-color: var(--cat-corps); }
.widget-categories .cat-tag.mindset { background-color: var(--cat-mindset); }

/* Most Read Widget */
.widget-most-read {
    list-style: none;
}

.widget-most-read li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.widget-most-read li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-most-read .thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
}

.widget-most-read .content {
    flex: 1;
}

.widget-most-read .title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
}

.widget-most-read .category {
    font-size: 11px;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 600;
}

/* Resources Widget */
.widget-resources {
    background-color: #fff;
    border: 2px solid var(--accent-gold);
    padding: 25px;
    margin-bottom: 30px;
}

.widget-resources h3 {
    border-bottom-color: var(--accent-gold);
}

.widget-resources p {
    font-size: 14px;
    margin-bottom: 15px;
}

.widget-resources a {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

.widget-resources a:hover {
    color: var(--accent-hover);
}

/* ========================================
   ARTICLE PAGE
   ======================================== */

.single-article-layout {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.single-main-col {
    width: 70%;
}

.single-sidebar-col {
    width: 30%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    object-fit: cover;
}

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

.article-category-badge {
    display: inline-block;
    padding: 8px 15px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.article-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
    color: #777;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

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

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

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--accent-gold);
    z-index: 999;
    width: 0%;
    transition: width 0.1s ease;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 60px 20px 20px;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .home-blog-layout,
    .single-article-layout {
        flex-direction: column;
    }

    .home-main-col, .home-sidebar-col,
    .single-main-col, .single-sidebar-col {
        width: 100%;
    }

    .home-sidebar-col, .single-sidebar-col {
        position: static;
    }

    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-nav.active {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
        order: 2;
    }

    .hero h1 {
        font-size: 40px;
    }

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

    .home-blog-layout {
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .article-title {
        font-size: 28px;
    }

    .sidebar-widget {
        padding: 15px;
    }
}
