/* Resetare și setări de bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container principal */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(to right, #9C0056, #800047);
    color: #fff;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

nav ul li a:hover {
    opacity: 0.8;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Page header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #FFE0F0;
}

.title-section {
    flex: 1;
}

.grup-titlu {
    color: #9C0056;
    font-size: 2.8em;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: none; /* Schimbat din 'capitalize' în 'none' */
    letter-spacing: -0.5px;
}

.grup-subtitlu {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 0.5rem;
}

/* Action buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    margin-bottom: 0.5rem;
    background-color: #9C0056;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-weight: 600;
    text-align: center;
    min-width: 180px;
}

.btn:hover {
    background-color: #7c0045;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Tabs */
.tabs {
    margin-bottom: 1rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background-color: #FFE0F0;
    border: none;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    color: #9C0056;
    transition: background-color 0.3s ease;
}

.tab-btn.active {
    background-color: #fff;
    border-bottom: 2px solid #9C0056;
}

.tab-content {
    display: none;
    background-color: #fff;
    padding: 1rem;
    border-radius: 0 0 3px 3px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

/* Măsuri */
.masura-container {
    margin-bottom: 30px;
}

.masura {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
}

.masura-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.masura-numar {
    flex-shrink: 0;
    font-weight: bold;
    background-color: #5ce1e6;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.1em;
}

.masura-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.masura-container {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masura-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 15px rgba(0,0,0,0.1);
}

.masura-descriere {
    font-size: 1.9em;
    font-weight: 600;
    color: #9C0056;
    margin-bottom: 15px;
}

.masura-detalii {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.masura-detalii li {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

@media (max-width: 768px) {
    .masura-detalii li {
        flex: 1 1 100%;
    }
}

.masura-descriere-extinsa {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
    line-height: 1.4;
    width: 100%;
    text-align: left;
}

.masura-actions {
    margin-top: 15px;
}

.propus-de {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

/* Butoane și acțiuni */
.sustineri {
    font-size: 0.9em;
    color: #666;
    margin-right: 1rem;
}

.comenteaza-btn {
    padding: 0.5rem 1rem;
    background-color: #9C0056;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.comenteaza-btn:hover {
    background-color: #7c0045;
}

.comentarii-toggle {
    color: #9C0056;
    cursor: pointer;
    text-decoration: underline;
}

/* Comentarii */
.comentarii-box {
    margin-top: 10px;
    margin-left: 40px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: none;
}

.comentarii-box h4 {
    margin-bottom: 15px;
    color: #9C0056;
}

.comentarii-container {
    max-height: 300px;
    overflow-y: auto;
}

.comentariu {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

/* Întrebări */
.intrebare {
    background-color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.intrebare-meta {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.intrebare-text {
    color: #333;
}

/* Overlay pentru comentarii */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(156,0,86,0.7);
    z-index: 1000;
}

.overlay-content {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Formulare */
form {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(156,0,86,0.1);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #9C0056;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #FFB0D9;
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    border-color: #9C0056;
    outline: none;
}

form textarea {
    height: 150px;
}

form button[type="submit"] {
    padding: 0.5rem 1rem;
    background-color: #9C0056;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #7c0045;
}

/* Footer */
footer {
    background-color: #333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        margin-top: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        margin-right: 0;
    }

    .comentarii-box {
        margin-left: 20px;
    }

    .sustine-btn, .comenteaza-btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .masura-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .masura-numar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .masura-descriere {
        width: 100%;
    }
}

/* Clasă pentru conținut lipsă */
.no-content {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

.sustine-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sustine-btn:hover {
    background-color: #e0e0e0;
}

.check-icon {
    font-size: 1.5em;
    color: #4CAF50;
}

.vote-count {
    font-size: 0.9em;
    color: #666;
    margin-top: 3px;
}
.link-primary {
    color: #9C0056; /* Aceasta este culoarea utilizată pentru h2 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-primary:hover {
    color: #730040; /* O nuanță mai închisă pentru hover */
    text-decoration: underline;
}

.intro-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.intro-text {
    flex: 1;
}

.intro-image-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-image {
    width: 100%;
    height: auto;
    max-height: 620px; /* Ajustați în funcție de necesități */
    object-fit: cover;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #9C0056; /* Folosiți culoarea specifică partidului */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #730040; /* O nuanță mai închisă pentru hover */
}

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
    }

    .intro-image-container {
        width: 100%;
    }
}