/* ================= SPECIFICKÉ STYLY PRO RECENZE ================= */

/* Hero sekce s GIF bannerem */
.hero {
    position: relative !important;
    background-image: url(/res/img/index.gif) !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 280px 20px 280px 20px !important;
    text-align: center !important;
    color: rgb(177, 31, 31) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: var(--hero-brightness);
    z-index: 1;
    transition: filter 0.3s ease;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
    transition: background 0.3s ease;
}

.hero .p {
    position: relative;
    z-index: 3;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--subtitle-bg);
    color: var(--subtitle-color);
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid var(--subtitle-border);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hlavní obsah a recenze */
main {
    flex-grow: 1;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    padding: 50px 20px;
}

.reviews h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-color);
}

.intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.85;
}

#reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.review {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: background 0.3s ease;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
    opacity: 0.95;
}

.author {
    font-weight: bold;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Formulář pro recenze */
.review-form {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 4px 15px var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-form label {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--text-color);
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.review-form button[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    margin-top: 10px;
}

.review-form button[type="submit"]:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Styly pro tlačítka správy recenzí */
.review-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: #0284c7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-edit:hover {
    background: #0369a1;
}

.btn-delete {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #b91c1c;
}

/* Modální okno */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-box h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-box p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn-confirm {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.modal-btn-confirm:hover {
    background: #b91c1c;
}

.modal-btn-cancel {
    background: #334155;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.modal-btn-cancel:hover {
    background: #475569;
}