/*
Theme Name: DeFemei
Theme URI: https://defemei.ro
Author: Digital Inbound
Author URI: https://defemei.ro
Description: O temă WordPress editorială premium pentru un stil de viață conștient. Design curat, editorial, cu estetică high-end lifestyle magazine.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: defemeiro
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, editorial, wellness, lifestyle, one-column
*/

/* === Base Reset & Defaults === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #fbf9f8;
    color: #1b1c1c;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif', serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* === Selection === */
::selection {
    background-color: #f1ca50;
    color: #6b5500;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f6f3f2;
}

::-webkit-scrollbar-thumb {
    background: #d4c2c2;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #70585b;
}

/* === Material Symbols === */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* === Line Clamp Utility === */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Logo Sizes === */
.defemei-logo-header .custom-logo-link {
    display: block !important;
    line-height: 1;
}

.defemei-logo-header .custom-logo-link img {
    max-height: var(--defemei-logo-header-size, 48px);
    width: auto !important;
    height: auto;
}

.defemei-logo-footer .custom-logo-link {
    display: block !important;
    line-height: 1;
}

.defemei-logo-footer .custom-logo-link img {
    max-height: var(--defemei-logo-footer-size, 38px);
    width: auto !important;
    height: auto;
}

/* === Screen Reader Text === */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* === Article Content Styling === */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #1b1c1c;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.875rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1b1c1c;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #1b1c1c;
}

.article-content blockquote {
    border-left: 4px solid #735c00;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #504444;
}

.article-content img {
    border-radius: 1rem;
    margin: 2rem 0;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style-position: outside;
}

.article-content ul {
    list-style: none;
    padding-left: 1.25rem;
}

.article-content ul > li {
    position: relative;
    margin-bottom: 0.625rem;
    padding-left: 1rem;
    line-height: 1.7;
}

.article-content ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #735c00;
}

.article-content ol {
    list-style: none;
    counter-reset: article-ol;
    padding-left: 1.25rem;
}

.article-content ol > li {
    position: relative;
    counter-increment: article-ol;
    margin-bottom: 0.625rem;
    padding-left: 1.75rem;
    line-height: 1.7;
}

.article-content ol > li::before {
    content: counter(article-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #735c00;
    font-family: 'Noto Serif', serif;
}

.article-content li > ul,
.article-content li > ol {
    margin: 0.5rem 0 0.5rem 0;
}

.article-content li {
    margin-bottom: 0.625rem;
}

.article-content li:last-child {
    margin-bottom: 0;
}

/* === First Letter Drop Cap (disabled) === */

/* === WP Classes === */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #70585b;
    text-align: center;
    margin-top: 0.5rem;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === Comment Styling === */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #d4c2c220;
}

.comment-author {
    font-weight: 700;
    color: #1b1c1c;
}

.comment-meta {
    font-size: 0.875rem;
    color: #70585b;
}

/* === Navigation === */
.nav-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0;
}

.nav-links a {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: #f6f3f2;
    color: #735c00;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-links a:hover,
.nav-links .current {
    background: #735c00;
    color: #ffffff;
}

/* === Mobile Menu === */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(27, 28, 28, 0.5);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100%;
    background: #fbf9f8;
    z-index: 101;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #70585b;
}

.mobile-menu nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 500;
    color: #70585b;
    border-bottom: 1px solid #f6f3f2;
    transition: color 0.3s;
}

.mobile-menu nav a:hover {
    color: #735c00;
}

/* === GDPR Cookie Consent === */
#gdpr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#gdpr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27, 28, 28, 0.4);
    transition: background 0.3s;
}

#gdpr-overlay.gdpr-overlay-blur {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#gdpr-overlay.gdpr-overlay-solid {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(27, 28, 28, 0.7);
}

#gdpr-modal-card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2;
}

#gdpr-rejected-banner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

body.gdpr-blur-active #gdpr-content-wrapper {
    filter: blur(8px);
    -webkit-filter: blur(8px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s;
}

body.gdpr-accepted #gdpr-content-wrapper,
body.gdpr-pending #gdpr-content-wrapper {
    filter: none;
    -webkit-filter: none;
    pointer-events: auto;
    user-select: auto;
}

body.gdpr-rejected #gdpr-content-wrapper {
    filter: blur(16px);
    -webkit-filter: blur(16px);
    pointer-events: none;
    user-select: none;
}

/* === Scroll Fade-In Animation === */
/* Only on desktop (lg = 1024px+) - elements start hidden and animate in via JS */
@media (min-width: 1025px) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in--visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: if JS fails, show content immediately */
.no-js .fade-in {
    opacity: 1;
    transform: none;
}

#gdpr-footer-link {
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
