/* Resetări de bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Stiluri pentru body */
body {
    font-family: 'Open Sans', sans-serif;
    background: #121212; /* Fundal închis */
    color: #e0e0e0; /* Text gri deschis */
    line-height: 1.6;
    padding: 20px;
    transition: background 0.3s ease-in-out;
}

/* Stiluri pentru antet */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff; /* Titluri albe */
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: #666666; /* Linie gri mediu */
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* Stiluri pentru paragrafe */
p {
    margin-bottom: 20px;
    color: #fff; /* Text gri deschis */
    text-align: justify;
}

/* Link-uri */
a {
    color: #1e90ff; /* Albastru deschis pentru link-uri */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00bfff; /* Albastru mai deschis la hover */
    text-decoration: underline;
}

/* Butoane */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(90deg, #444444 0%, #222222 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn:hover {
    background: linear-gradient(90deg, #222222 0%, #444444 100%);
    transform: translateY(-3px);
}

.btn-danger {
    background: linear-gradient(90deg, #555555 0%, #333333 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-danger:hover {
    background: linear-gradient(90deg, #333333 0%, #555555 100%);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(34, 34, 34, 0.95); /* Fundal container închis */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Layout responsive */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 15px;
}

/* Layout pentru ecrane mari */
@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
    }

    .col-md-4 {
        flex: 0 0 33.33%;
    }

    .col-md-12 {
        flex: 0 0 100%;
    }
}

/* Navigație */
.navbar {
    background: #1a1a1a; /* Fundal navbar închis */
    padding: 15px 30px;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.navbar a {
    color: #fff;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #cccccc;
}

/* Animații */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Stilizare pentru card */
.card {
    background: #1e1e1e; /* Fundal card închis */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    overflow: hidden;
    margin-bottom: 40px; /* Păstrăm spațiul între carduri */
    height: 100%; /* Asigură înălțime egală */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Ajustare pentru imagine */
.card-img-top {
    object-fit: cover;
    height: 240px; /* Dimensiuni proporționale */
    filter: grayscale(0%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.card-img-top:hover {
    filter: brightness(0.8);
    transform: scale(1.05);
}

/* Card Body */
.card-body {
    padding: 20px;
    color: #cccccc; /* Text gri deschis */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.5rem;
    color: #ffffff; /* Text alb pentru titlu */
    margin-bottom: 15px;
    text-align: center; /* Centrare titlu */
}

.card-text {
    font-size: 1rem;
    color: #cccccc; /* Text gri deschis pentru descriere */
    margin-bottom: 15px;
    text-align: center; /* Centrare text */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Afișează maximum 3 linii */
    -webkit-box-orient: vertical;
}

.price-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #e63946; /* Roșu pentru preț */
    background-color: #2a2a2a; /* Fundal închis pentru preț */
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

/* Butonul "Vezi detalii" */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Împinge butonul la baza cardului */
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Footer */
.card-footer {
    background: #2a2a2a; /* Fundal mai închis */
    border-top: 1px solid #444; /* Linie de separare */
    padding: 10px 15px;
    text-align: center; /* Centrare conținut */
    font-size: 0.9rem;
    color: #cccccc; /* Text gri deschis */
    border-radius: 0 0 15px 15px; /* Potrivire cu colțurile cardului */
}

/* Stilizare pentru butonul de favorite */
.favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.favorite-button .btn {
    padding: 5px 8px;
    border-radius: 50%;
    background-color: #ffffff20; /* Fundal transparent alb */
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.favorite-button .btn:hover {
    background-color: #ffffff40;
    transform: scale(1.1);
}

/* Spațiere între carduri pe rânduri */
.row > .col-md-4 {
    margin-bottom: 40px; /* Păstrăm spațiul între rânduri */
}

/* Asigură înălțimea egală a cardurilor în grid */
.row > .col-md-4 {
    display: flex;
}

.row > .col-md-4 > .card {
    flex: 1;
}


/* Butoane suplimentare */
.btn-primary {
    background: linear-gradient(90deg, #444444 0%, #222222 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #222222 0%, #444444 100%);
}

.btn-favorite {
    background: linear-gradient(90deg, #555555 0%, #333333 100%);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-favorite:hover {
    background: linear-gradient(90deg, #333333 0%, #555555 100%);
    transform: translateY(-3px);
}

.btn-purple {
    background: linear-gradient(90deg, #444444 0%, #222222 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-purple:hover {
    background: linear-gradient(90deg, #222222 0%, #444444 100%);
    color: white;
}

/* Fundal cu imagine */
body {
    background-image: url('/images/background-vector-av3jNb1F--transformed.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: repeat;
    background-attachment: fixed;
}

/* Butoane pentru aplicații de mesagerie */
.btn-viber {
    background: linear-gradient(90deg, #444444 0%, #222222 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-viber:hover {
    background: linear-gradient(90deg, #222222 0%, #444444 100%);
}

.btn-whatsapp {
    background: linear-gradient(90deg, #444444 0%, #222222 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-whatsapp:hover {
    background: linear-gradient(90deg, #222222 0%, #444444 100%);
}

.additional-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.additional-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Carduri animate */
.card {
    min-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Stiluri pentru overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #cccccc;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: #fff;
    font-weight: bold;
    font-size: 40px;
    transition: background 0.3s ease, color 0.3s ease;
    user-select: none;
    border-radius: 0 5px 5px 0;
}

.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: #dddddd;
}

/* Ascunde overlay-ul când este clasa hidden */
.hidden {
    display: none;
}

/* Stiluri suplimentare pentru formularul de căutare */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
}

.form-control {
    margin-right: 15px;
    margin-bottom: 15px;
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid #cccccc;
    background: #1e1e1e;
    color: #e0e0e0;
}

.form-control:focus {
    border-color: #444444;
    box-shadow: 0 0 5px rgba(68, 68, 68, 0.5);
}

/* Stiluri pentru paginare */
.pagination {
    justify-content: center;
    margin-top: 30px;
}

.page-link {
    color: #e0e0e0;
    background: transparent;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}

.page-link:hover {
    background: #444444;
    color: #fff;
}

/* Stiluri pentru alert */
.alert {
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1rem;
    background: #333333;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Media queries pentru dispozitive mobile */
@media (max-width: 767px) {
    .navbar {
        border-radius: 0;
    }

    .container {
        padding: 15px;
    }

    .card {
        margin-bottom: 20px;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .form-control {
        margin-right: 0;
        margin-bottom: 15px;
    }
}


.price-display {
    font-size: 1.2em; /* Dimensiune moderată */
    font-weight: bold; /* Text îngroșat */
    color: #e63946; /* Roșu minimalist pentru text */
    background-color: #f9f9f9; /* Fundal foarte deschis */
    padding: 5px 10px; /* Spațiere simplă */
    border: 1px solid #e63946; /* Bordură roșie subțire */
    border-radius: 5px; /* Colțuri rotunjite */
    display: inline-block; /* Pentru un aspect compact */
    text-align: center; /* Text centrat */
    letter-spacing: 0.5px; /* Ușoară spațiere între litere */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Umbră discretă */
    margin-top: 10px; /* Spațiu deasupra */
}

/* Adaugă un efect subtil la hover */
.price-display:hover {
    background-color: #e63946; /* Fundal roșu la hover */
    color: #fff; /* Text alb la hover */
    cursor: pointer; /* Cursor de tip mână */
    transition: background-color 0.3s ease, color 0.3s ease; /* Tranziție lină */
}




/* Fixează poziția paginării la centru și adaugă spațiu între paginare și conținut */
.pagination-container {
    position: static; /* Poziție fixă în document */
    margin-top: 20px; /* Spațiu deasupra paginării */
    margin-bottom: 50px; /* Spațiu suplimentar sub paginare */
    text-align: center; /* Centrare pe orizontală */
}

.pagination {
    display: inline-flex; /* Afișează elementele de paginare pe un singur rând */
    padding: 10px; /* Spațiu interior */

    border-radius: 5px; /* Colțuri rotunjite */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Umbră subtilă */
}

.pagination .page-item .page-link {
    color: #007bff; /* Albastru Bootstrap */
    font-weight: bold;
    margin: 0 5px; /* Spațiere între link-uri */
    transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
    color: #0056b3; /* Albastru mai închis */

    text-decoration: none;
}

.pagination .page-item.active .page-link {
    color: #fff; /* Text alb */
    background-color: #007bff; /* Fundal albastru */
    border-color: #007bff;
}





.favorite-button {
    position: absolute;
    top: 10px; /* Poziționare de sus */
    right: 10px; /* Poziționare din dreapta */
    z-index: 10; /* Asigură că este deasupra imaginii */
}

.favorite-button .btn {
    padding: 5px 8px; /* Dimensiuni compacte pentru buton */
    border-radius: 50%; /* Formă rotundă */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Umbră subtilă */
    transition: all 0.3s ease; /* Efect de tranziție */
}

.favorite-button .btn:hover {
    transform: scale(1.1); /* Efect de mărire la hover */
}






.video-container {
    margin-top: 20px;
    text-align: center;
}

.video-container video {
    width: 100%;
    max-width: 600px;
    height: auto;
}



/* Stil pentru avatar */
.dropdown-menu img {
    border: 2px solid #ff8c00;
}

/* Stil pentru header-ul dropdown */
.dropdown-item-text {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Stil pentru link-uri */
.dropdown-item {
    color: #333;
}

.dropdown-item:hover {
    background-color: #ff8c00;
    color: #fff;
}




.form-check-label a {
    color: #007bff;
    text-decoration: underline;
}

.form-check-label a:hover {
    text-decoration: none;
}




