@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Merriweather:ital,wght@0,400;0,700;1,400&family=Roboto:wght@400;500;700&display=swap');

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* HEADER & NAVIGARE */
header {
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.main-nav a {
    font-family: 'Arimo', sans-serif;
    margin-left: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover {
    border-bottom: 2px solid #111;
}

/* STILURI LOGO (Monogramă + Text) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #111111;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #111111;
}

.logo-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666666;
    margin-top: 3px;
}

/* HOMEPAGE - SPLIT SCREEN EFFECT */
.home-container {
    height: calc(100vh - 110px);
    display: flex;
    position: relative;
    overflow: hidden;
}

.split-option {
    flex: 1;
    position: relative;
    height: 100%;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.split-option::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.4s ease;
}

.split-option:hover::before {
    background: rgba(0, 0, 0, 0.15);
}

.home-container:hover .split-option {
    flex: 0.05;
}

.home-container .split-option:hover {
    flex: 1;
}

.split-text {
    font-family: 'Arimo', sans-serif;
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #ffffff;
    padding: 15px 30px;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.split-option:hover .split-text {
    transform: scale(1.08);
}

/* PAGINA ARTICOLE - LAYOUT & ALINIERE */
.content-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.page-heading {
    font-family: 'Arimo', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    border-bottom: 2px solid #111;
    color: #000080;
    padding-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.articles-layout {
    display: flex;
    gap: 45px;
    align-items: flex-start;
}

.category-sidebar {
    width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    margin-top: -2px; /* Aliniere exactă cu primul titlu */
}

.articles-main {
    flex: 1;
}

/* BUTOANE CATEGORII */
.category-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 14px;
    font-family: 'Ar', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444444;
    background-color: #f8f8f8;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* CULORI BUTOANE (ACTIVE & HOVER) */
.filter-btn[data-filter="all"].active,
.filter-btn[data-filter="all"]:hover {
    background-color: #111111;
    color: #ffffff;
    border-color: #111111;
}

.filter-btn[data-filter="cultura"].active,
.filter-btn[data-filter="cultura"]:hover {
    background-color: #ffd93d;
    color: #111111;
    border-color: #7c3aed;
}

.filter-btn[data-filter="sport"].active,
.filter-btn[data-filter="sport"]:hover {
    background-color: #83c8fc;
    color: #111111;
    border-color: #16a34a;
}

.filter-btn[data-filter="opinii"].active,
.filter-btn[data-filter="opinii"]:hover {
    background-color: #b7e4c7;
    color: #111111;
    border-color: #dc2626;
}

.filter-btn[data-filter="reviews"].active,
.filter-btn[data-filter="reviews"]:hover {
    background-color: #e8b89a;
    color: #111111;
    border-color: #d97706;
}

/* LISTA DE ARTICOLE */
.article-list {
    list-style: none;
    padding: 0;
}

.article-item {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* TITLU ARTICOL - BACKGROUND HOVER IN FUNCTIE DE CATEGORIE */
.row-title a {
    font-family: 'Merriweather', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
    padding: 3px 8px;
    margin-left: -8px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.article-item[data-category="cultura"] .row-title a:hover {
    background-color: #ffd93d;
    color: #111111;
}

.article-item[data-category="sport"] .row-title a:hover {
    background-color: #83c8fc;
    color: #111111;
}

.article-item[data-category="opinii"] .row-title a:hover {
    background-color: #b7e4c7;
    color: #111111;
}

.article-item[data-category="reviews"] .row-title a:hover {
    background-color: #e8b89a;
    color: #111111;
}

.article-item .row-title a:hover {
    background-color: #111111;
    color: #ffffff;
}

/* DESCRIERE, PUBLICAȚIE, DATĂ */
.row-excerpt {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.4;
    margin: 3px 0;
}

.row-publisher a {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222222;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.row-publisher a:hover {
    opacity: 0.7;
}

.row-date {
    font-size: 0.85rem;
    color: #888888;
    font-weight: 400;
}

/* RESPONSIVE PENTRU ARTICOLE */
@media (max-width: 768px) {
    .articles-layout {
        flex-direction: column;
        gap: 20px;
    }

    .category-sidebar {
        width: 100%;
        position: static;
        margin-top: 0;
    }

    .category-filters {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .filter-btn {
        width: auto;
    }
}

/* PAGINA CONTACT / ABOUT */
.contact-container {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.contact-image {
    width: 40%;
    object-fit: cover;
    border-radius: 4px;
}

.contact-info {
        width: 40%;
}

.contact-info h2 {
    font-family: 'Arimo', sans-serif;
    margin-left: 0px;
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info p {
    margin-bottom: 4px;
    color: #444;
}

/* FOOTER BANDA GRI */
.site-footer {
    background-color: #ececec;
    color: #333333;
    font-size: 0.85rem;
    padding: 12px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: auto;
}

.site-footer a {
    color: #111111;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.site-footer a:hover {
    opacity: 0.6;
}

.site-footer .separator {
    color: #666666;
    user-select: none;
}

.footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 2px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    color: #222222;
    text-decoration: none;
}

.footer-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .home-container { flex-direction: column; }
    .home-container:hover .split-option { flex: 0.1; }
    .contact-container { flex-direction: column; }
    .contact-image, .contact-info { width: 100%; }

    .row-title a {
        font-size: 1.35rem;
    }
    
    .row-publisher a {
        font-size: 1.05rem;
    }
}