/* RESET BAZIC & FONTURI */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f2f5;
    overflow-x: hidden;
}

/* CONTAINER GENERAL */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    background-color: #ff6b6b; /* Roșu piersică */
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.site-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    display: flex; /* Permite alinierea elementelor H1 pe verticală */
    flex-direction: column; /* Le așează unul sub altul */
    align-items: center; /* Centrează-le */
}

.site-header .site-logo {
    color: #333; /* Culoare negru pentru logo */
    text-decoration: none;
    font-weight: 700; /* Il facem bold */
}

/* NOU: Stil pentru tagline-ul din H1 */
.site-header .tagline {
    font-size: 0.8em; /* Mai mic decât titlul principal */
    color: #f0f2f5; /* Culoare mai deschisă */
    margin-top: 5px; /* Spațiu între logo și tagline */
    opacity: 0.8;
}

.site-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* MAIN CONTENT */
.site-main {
    padding: 40px 0;
}

section {
    padding: 40px 0;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 2.2rem;
    color: #4a4a4a;
    text-align: center;
    margin-bottom: 30px;
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    background: #e0f7fa;
    padding: 60px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* BUTON */
.btn {
    display: inline-block;
    background-color: #8c7ae6;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 15px; /* Spațiu sub butoane */
}

.btn:hover {
    background-color: #715ed3;
    transform: translateY(-2px);
}

/* NOU: Stil pentru butonul YouTube */
.btn-secondary {
    background-color: #ff0000; /* Roșu YouTube */
}

.btn-secondary:hover {
    background-color: #cc0000;
}

/* Centrare text pentru butoane */
.text-center {
    text-align: center;
}

.cat-fact-display {
    margin-top: 25px;
    font-style: italic;
    color: #666;
    font-size: 1.1em;
    padding: 15px;
    background-color: #f7f7f7;
    border-left: 5px solid #8c7ae6;
    border-radius: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* VIDEO GALLERY SECTION (GRID) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.video-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item iframe,
.video-item img {
    width: 100%;
    height: 200px;
    display: block;
    border: none;
}

.video-item .video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-item .video-description {
    padding: 15px;
    font-size: 0.95em;
    color: #555;
    text-align: center;
}

.section-description {
    text-align: center;
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px auto;
}


/* ABOUT SECTION */
.about-section {
    text-align: center;
    background-color: #fdfdfd;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.about-section a {
    color: #8c7ae6;
    text-decoration: none;
    font-weight: bold;
}

.about-section a:hover {
    text-decoration: underline;
}

/* NOU: Stil pentru linkul text YouTube */
.youtube-link-text {
    color: #ff0000; /* Roșu YouTube */
    font-weight: bold;
}
.youtube-link-text:hover {
    text-decoration: underline;
}


/* FOOTER */
.site-footer {
    background-color: #333;
    color: #f4f4f4;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-nav a {
    color: #a0a0a0;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

/* RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 2.2rem;
    }

    .site-header .tagline {
        font-size: 0.7em;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}