/* ══════════════════════════════════════════════════════════════
   1. CSS VARIABLES — suprascrie tema ZenBlog
══════════════════════════════════════════════════════════════ */
:root {
    --ace-purple:  #7c3aed;
    --ace-indigo:  #6366f1;
    --ace-dark:    #0f0e17;
    --ace-card:    #16151f;
    --ace-border:  rgba(124,58,237,0.18);
    --ace-text:    #e2e8f0;
    --ace-muted:   #94a3b8;

    /* Suprascrie variabilele ZenBlog */
    --background-color:  #0f0e17;
    --default-color:     #e2e8f0;
    --heading-color:     #f1f5f9;
    --accent-color:      #7c3aed;
    --surface-color:     #16151f;
    --contrast-color:    #ffffff;

    --nav-color:                      #94a3b8;
    --nav-hover-color:                #c4b5fd;
    --nav-mobile-background-color:    #16151f;
    --nav-dropdown-background-color:  #1a1825;
    --nav-dropdown-color:             #94a3b8;
    --nav-dropdown-hover-color:       #c4b5fd;
}

/* ══════════════════════════════════════════════════════════════
   2. BODY & GLOBAL
══════════════════════════════════════════════════════════════ */
body {
    background-color: var(--ace-dark);
    color: var(--ace-text);
}

a { color: #a78bfa; }
a:hover { color: #c4b5fd; }

h1, h2, h3, h4, h5, h6 { color: #f1f5f9; }

/* ══════════════════════════════════════════════════════════════
   3. HEADER
══════════════════════════════════════════════════════════════ */
.header {
    --background-color: #0d0c14;
    background-color: #0d0c14 !important;
    border-bottom: 1px solid var(--ace-border);
    backdrop-filter: blur(10px);
}

.header .logo h1 {
    color: #f1f5f9;
    font-family: var(--nav-font);
    font-weight: 700;
}

.header .header-social-links a { color: #64748b; }
.header .header-social-links a:hover { color: #a78bfa; }

/* ══════════════════════════════════════════════════════════════
   4. NAVIGATION
══════════════════════════════════════════════════════════════ */
.navmenu a,
.navmenu a:focus {
    color: #94a3b8;
}
.navmenu li:hover > a,
.navmenu .active,
.navmenu .active:focus,
.navmenu a:hover {
    color: #c4b5fd !important;
}
.navmenu .dropdown ul {
    background: #1a1825;
    border: 1px solid var(--ace-border);
}
.navmenu .dropdown ul a { color: #94a3b8; }
.navmenu .dropdown ul a:hover { color: #c4b5fd; }

/* Mobile nav */
@media (max-width: 1199px) {
    .navmenu ul { background-color: #16151f; border: 1px solid var(--ace-border); }
    .navmenu a { color: #cbd5e1; }
    .mobile-nav-toggle { color: #94a3b8; }
}

/* ══════════════════════════════════════════════════════════════
   5. PAGE TITLE BAR
══════════════════════════════════════════════════════════════ */
.page-title {
    background: linear-gradient(135deg, #0f0e17 0%, #1a1825 100%);
    border-bottom: 1px solid var(--ace-border);
    padding: 40px 0 32px;
}
.page-title h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    letter-spacing: -.02em;
}

/* ══════════════════════════════════════════════════════════════
   6. BLOG POST CARDS
══════════════════════════════════════════════════════════════ */
.blog-posts article {
    background: #16151f;
    border: 1px solid var(--ace-border);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.blog-posts article:hover {
    border-color: rgba(124,58,237,0.5);
    transform: translateY(-4px);
}
.blog-posts .post-content {
    padding: 24px;
    background: #16151f;
}
.blog-posts .post-title {
    color: #f1f5f9;
    font-size: 18px;
    font-weight: 700;
}
.blog-posts article:hover .post-title,
.blog-posts article:hover .readmore {
    color: #a78bfa;
}
.blog-posts .post-date {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    border-radius: 0 0 0 10px;
}
.blog-posts .meta i { color: #7c3aed; }
.blog-posts .meta span { color: #64748b; }
.blog-posts p { color: #94a3b8; }
.blog-posts hr { border-color: rgba(255,255,255,0.06); }
.blog-posts .readmore { color: #94a3b8; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   7. BLOG PAGINATION
══════════════════════════════════════════════════════════════ */
.blog-pagination .page-link {
    background: #16151f;
    border: 1px solid var(--ace-border);
    color: #94a3b8;
    border-radius: 8px;
}
.blog-pagination .page-link:hover,
.blog-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border-color: #7c3aed;
    color: #fff;
}
.blog-pagination .page-item.disabled .page-link {
    background: #0f0e17;
    color: #334155;
    border-color: rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════════════════════════════
   8. BLOG DETAIL (articol individual)
══════════════════════════════════════════════════════════════ */
.blog-details .article {
    background: #16151f;
    border: 1px solid var(--ace-border);
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}
.blog-details .article .post-img img {
    width: 100%;
    border-radius: 16px 16px 0 0;
}
.blog-details .article .title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #f1f5f9;
    padding: 28px 32px 0;
    letter-spacing: -.02em;
}
.blog-details .article .meta-top {
    padding: 12px 32px 20px;
    border-bottom: 1px solid var(--ace-border);
}
.blog-details .article .meta-top ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 20px; }
.blog-details .article .meta-top li { color: #64748b; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.blog-details .article .meta-top i { color: #7c3aed; }
.blog-details .article .content {
    padding: 28px 32px;
    color: #cbd5e1;
    line-height: 1.85;
    font-size: 16px;
}
.blog-details .article .content h2,
.blog-details .article .content h3 { color: #f1f5f9; margin-top: 32px; font-weight: 700; }
.blog-details .article .content p { color: #cbd5e1; }
.blog-details .article .content code {
    background: rgba(124,58,237,0.15);
    color: #c4b5fd;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 14px;
}
.blog-details .article .content pre {
    background: #0d0c14;
    border: 1px solid var(--ace-border);
    border-radius: 10px;
    padding: 20px;
}
.blog-details .article .content blockquote {
    background: rgba(124,58,237,0.08);
    border-left: 4px solid #7c3aed;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    color: #a78bfa;
    font-style: italic;
}
.blog-details .article .meta-bottom {
    padding: 16px 32px 24px;
    border-top: 1px solid var(--ace-border);
}

/* Tags */
.blog-details .tags a,
.blog-details .meta-bottom a {
    background: rgba(124,58,237,0.12);
    border: 1px solid var(--ace-border);
    color: #a78bfa;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin: 2px;
    display: inline-block;
    transition: background .2s;
}
.blog-details .tags a:hover,
.blog-details .meta-bottom a:hover {
    background: rgba(124,58,237,0.28);
    color: #c4b5fd;
}

/* ══════════════════════════════════════════════════════════════
   9. CONTACT SECTION
══════════════════════════════════════════════════════════════ */
.contact {
    background-color: var(--ace-dark);
}
.contact .info-item {
    background: #16151f;
    border: 1px solid var(--ace-border);
    border-radius: 14px;
    padding: 24px;
    transition: border-color .2s;
}
.contact .info-item:hover { border-color: rgba(124,58,237,0.4); }
.contact .info-item i {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border-radius: 10px;
    width: 44px; height: 44px;
}
.contact .info-item h3 { color: #f1f5f9; font-size: 16px; font-weight: 700; margin: 12px 0 6px; }
.contact .info-item p  { color: #94a3b8; font-size: 14px; margin: 0; }

.contact .php-email-form {
    background: #16151f;
    border: 1px solid var(--ace-border);
    border-radius: 16px;
    padding: 32px;
}
.contact .php-email-form .form-control,
.contact .php-email-form textarea,
.contact form input,
.contact form textarea,
.contact form select {
    background: #0f0e17 !important;
    border: 1px solid var(--ace-border) !important;
    color: #e2e8f0 !important;
    border-radius: 10px !important;
}
.contact form input:focus,
.contact form textarea:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15) !important;
    outline: none;
}
.contact form input::placeholder,
.contact form textarea::placeholder { color: #475569; }
.contact form label { color: #94a3b8; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.contact form button[type="submit"] {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.contact form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.45);
}

/* ══════════════════════════════════════════════════════════════
   10. LIFESTYLE / CATEGORY SECTIONS (Index page)
══════════════════════════════════════════════════════════════ */
.lifestyle-category {
    background: var(--ace-dark);
}
.lifestyle-category .post-list {
    border-color: var(--ace-border) !important;
}
.lifestyle-category .post-list h2 a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color .2s;
}
.lifestyle-category .post-list h2 a:hover { color: #a78bfa; }
.lifestyle-category .author .name h3 { color: #cbd5e1; }
.lifestyle-category .custom-border,
.lifestyle-category .border-bottom {
    border-color: var(--ace-border) !important;
}
.lifestyle-category .section-title h2 { color: #f1f5f9; }
.lifestyle-category .section-title .section-title-container {
    border-color: var(--ace-border);
}
.lifestyle-category .section-title a { color: #94a3b8; border-color: #94a3b8; }
.lifestyle-category .section-title a:hover { color: #a78bfa; }

/* ══════════════════════════════════════════════════════════════
   11. SLIDER / SWIPER (Home hero)
══════════════════════════════════════════════════════════════ */
.slider .swiper-slide {
    background: var(--ace-dark);
}
.slider .swiper-pagination-bullet { background: #475569; }
.slider .swiper-pagination-bullet-active { background: #7c3aed; }

/* ══════════════════════════════════════════════════════════════
   12. SECTION TITLES (global)
══════════════════════════════════════════════════════════════ */
.section-title h2 { color: #f1f5f9; }
.section-title .section-title-container { border-color: var(--ace-border); }
.section-title a { color: #94a3b8; border-color: var(--ace-border); }
.section-title p { color: #94a3b8; }

/* ══════════════════════════════════════════════════════════════
   13. FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
    background: #0d0c14 !important;
    border-top: 1px solid var(--ace-border);
    color: #64748b;
}

/* ══════════════════════════════════════════════════════════════
   14. SCROLL TO TOP
══════════════════════════════════════════════════════════════ */
.scroll-top {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.scroll-top:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
}

/* ══════════════════════════════════════════════════════════════
   15. UTILITY — cards, alerts, badges Bootstrap override
══════════════════════════════════════════════════════════════ */
.card {
    background: #16151f !important;
    border: 1px solid var(--ace-border) !important;
    color: #e2e8f0;
}
.card-header {
    background: rgba(124,58,237,0.12) !important;
    border-bottom: 1px solid var(--ace-border) !important;
    color: #f1f5f9 !important;
}
.card-title { color: #f1f5f9 !important; }

.table {
    color: #cbd5e1;
    border-color: var(--ace-border);
}
.table-light { background: rgba(124,58,237,0.08) !important; color: #94a3b8 !important; }
.table-hover > tbody > tr:hover > * {
    background: rgba(124,58,237,0.06);
    color: #f1f5f9;
}
.table td, .table th { border-color: var(--ace-border); }

.form-control, .form-select {
    background: #0f0e17 !important;
    border-color: var(--ace-border) !important;
    color: #e2e8f0 !important;
    border-radius: 8px !important;
}
.form-control:focus, .form-select:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15) !important;
}
.form-control::placeholder { color: #475569; }
.form-label { color: #94a3b8; font-size: 13px; font-weight: 600; }
.form-text { color: #475569 !important; }

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(124,58,237,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.45) !important;
}
.btn-outline-secondary {
    border-color: var(--ace-border) !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
}
.btn-outline-secondary:hover {
    background: rgba(124,58,237,0.12) !important;
    color: #c4b5fd !important;
    border-color: rgba(124,58,237,0.4) !important;
}
.btn-sm { font-size: 12px !important; }

.alert-info {
    background: rgba(99,102,241,0.1) !important;
    border-color: rgba(99,102,241,0.3) !important;
    color: #a5b4fc !important;
    border-radius: 10px;
}
.alert-danger {
    background: rgba(239,68,68,0.1) !important;
    border-color: rgba(239,68,68,0.3) !important;
    color: #fca5a5 !important;
    border-radius: 10px;
}
.alert-success {
    background: rgba(34,197,94,0.1) !important;
    border-color: rgba(34,197,94,0.3) !important;
    color: #86efac !important;
    border-radius: 10px;
}

.badge.bg-primary { background: linear-gradient(135deg, #7c3aed, #6366f1) !important; }
.badge.bg-success { background: rgba(34,197,94,0.2) !important; color: #86efac !important; border: 1px solid rgba(34,197,94,0.3); }
.badge.bg-danger  { background: rgba(239,68,68,0.2) !important; color: #fca5a5 !important; border: 1px solid rgba(239,68,68,0.3); }
.badge.bg-warning { background: rgba(234,179,8,0.2) !important; color: #fde047 !important; border: 1px solid rgba(234,179,8,0.3); }

.progress {
    background: rgba(255,255,255,0.05) !important;
    border-radius: 100px;
}

code {
    background: rgba(124,58,237,0.15);
    color: #c4b5fd;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 13px;
}
pre {
    background: #0d0c14;
    border: 1px solid var(--ace-border);
    border-radius: 10px;
    padding: 16px;
    color: #e2e8f0;
}
pre code { background: none; padding: 0; }

/* ══════════════════════════════════════════════════════════════
   16. ACE AREA DASHBOARD (nav, cards)
══════════════════════════════════════════════════════════════ */
.shadow-sm { box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important; }

/* Input group în dashboard */
.input-group .form-control { border-right: none !important; }
.input-group .btn { border-radius: 0 8px 8px 0 !important; }

/* ══════════════════════════════════════════════════════════════
   17. DARK PRELOADER
══════════════════════════════════════════════════════════════ */
#preloader {
    background: #0f0e17;
}
#preloader::before {
    border-color: #7c3aed transparent #7c3aed transparent;
}

/* ══════════════════════════════════════════════════════════════
   18. SELECTION COLOR
══════════════════════════════════════════════════════════════ */
::selection {
    background: rgba(124,58,237,0.35);
    color: #f1f5f9;
}

/* ══════════════════════════════════════════════════════════════
   19. ACE AREA — Dashboard & Analytics readability fixes
══════════════════════════════════════════════════════════════ */

/* text-muted vizibil pe fundal dark */
.text-muted { color: #94a3b8 !important; }

/* h4, small în carduri usage */
.card h3,
.card h4 { color: #f1f5f9 !important; }

.card small,
.card .small { color: #94a3b8 !important; }

/* table thead dark */
.table-light,
.table-light th {
    background: rgba(124,58,237,0.1) !important;
    color: #a78bfa !important;
}

/* table body rows */
.table tbody tr td { color: #cbd5e1 !important; }

/* snippet pre — bg-light override */
pre.bg-light {
    background: #0d0c14 !important;
    color: #e2e8f0 !important;
    border-color: var(--ace-border) !important;
}

/* input-group placeholder */
.input-group .form-control { color: #e2e8f0 !important; }

/* card-header bg-success override */
.card-header.bg-success {
    background: rgba(34,197,94,0.15) !important;
    color: #86efac !important;
    border-bottom: 1px solid rgba(34,197,94,0.3) !important;
}

/* strong, bold în carduri */
.card strong { color: #e2e8f0; }

/* select dropdown în analytics */
.form-select option {
    background: #16151f;
    color: #e2e8f0;
}

/* fw-bold în carduri usage */
.card .fw-bold { color: #f1f5f9 !important; }