/*
Theme Name: OnePress Child
Theme URI: https://www.famethemes.com/themes/onepress-child/
Description: OnePress Child Theme - Dark Mode Pivot
Author: FameThemes & Antigravity
Author URI: http://www.famethemes.com
Template: onepress
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark-mode, single-page, portfolio
Text Domain: onepress-child
*/

:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --accent: #BB86FC;
    /* Modern Purple */
    --accent-hover: #9965f4;
    --border-color: #333;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    /* Setup in functions */
}

/* Force Dark Background on Wrappers */
#page,
.site,
.site-content,
.site-main,
.wrapper {
    background-color: var(--bg-dark) !important;
}

/* =Header
-------------------------------------------------------------- */
.site-header.custom-header {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.site-header .site-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Menu Button */
.btn-theme-primary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

/* =Sections
-------------------------------------------------------------- */
.dark-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at center, #1e1e1e 0%, #121212 70%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.8;
}

/* =Cards
-------------------------------------------------------------- */
.dark-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.dark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.card-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.dark-card:hover .card-thumb img {
    opacity: 1;
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.entry-title a {
    color: #fff;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    text-align: right;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* =Buttons & Utilities
-------------------------------------------------------------- */
.btn-outline-theme {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-outline-theme:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(187, 134, 252, 0.05);
    /* Tint of accent */
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

/* =Footer Override
-------------------------------------------------------------- */
.custom-footer {
    border-top: 1px solid var(--border-color);
}

/* Single Post Specifics (Override parent styles to ensure readbility) */
.single-post .site-main,
.page .site-main {
    background: transparent !important;
    color: var(--text-main);
}

.single-post h1,
.single-post h2,
.single-post h3 {
    color: #fff !important;
}

.single-post a {
    color: var(--accent);
}	
	/* =Blockquotes (Refined)
-------------------------------------------------------------- */
blockquote {
    border-left: 5px solid var(--accent) !important;
    background-color: #222 !important; /* Fons fosc sòlid per contrast */
    color: #ffffff !important;
    padding: 25px !important;
    margin: 30px 0 !important;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Ombra per profunditat */
    position: relative;
}
blockquote p {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0; /* Eliminar marge inferior del darrer paràgraf */
}
blockquote cite {
    display: block;
    margin-top: 15px !important;
    font-size: 0.95rem;
    color: var(--accent) !important;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =Remove Sidebar Borders
-------------------------------------------------------------- */
@media screen and (min-width: 940px) {
    .left-sidebar .content-area,
    .left-sidebar .sidebar,
    .right-sidebar .content-area,
    .right-sidebar .sidebar {
        border: none !important;
    }
}