/* ==== General ==== */
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #6A0572, #A66CFF, #2E2E2E, #6A0572);
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
    color: #ffffff;
}

/* Animație fundal */
@keyframes gradientAnim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 4em 2em;
}

/* ==== Introducere blog ==== */
.intro-blog {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease forwards;
}

.intro-blog h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #A66CFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-blog p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.85;
}

/* ==== Grilă articole ==== */
.grid-blog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

/* ==== Card blog ==== */
.card-blog {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.8s ease both;
    padding-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-blog:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.card-blog img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-blog h3 {
    margin: 1.2rem 1rem 0.8rem;
    font-size: 1.6rem;
    color: #fff;
}

.card-blog p {
    padding: 0 1.2rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* ==== Buton Citește mai mult ==== */
.btn-citeste {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.7em 1.6em;
    border-radius: 30px;
    border: 2px solid #A66CFF;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    z-index: 1;
}

.btn-citeste::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #A66CFF;
    border-radius: 30px;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-citeste:hover {
    color: #000;
}

.btn-citeste:hover::before {
    width: 100%;
}

/* ==== Buton Înapoi ==== */
.back-to-blog {
    text-align: center;
    margin-top: 3rem;
}

.btn-inapoi {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #A66CFF;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-inapoi:hover {
    background-color: #A66CFF;
    color: #000;
}

/* ==== Animație fade-in ==== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== Responsivitate ==== */
@media (max-width: 768px) {
    .intro-blog h1 {
        font-size: 2.3rem;
    }

    .card-blog h3 {
        font-size: 1.3rem;
    }
}