/* Votar Page Specific Styles */


/* Red background with texture for the entire voting page */
.page-votar {
    background-color: #3b0712;
    position: relative;
}

.page-votar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use the same background image with a dark red multiply/overlay effect */
    background-image: url('../resources/img/fondo_index.webp');
    background-size: cover;
    background-position: center;
    mix-blend-mode: multiply;
    opacity: 0.3;
    z-index: -2;
}

.page-votar::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(94, 0, 23, 0.4) 0%, rgba(40, 0, 10, 0.9) 100%);
    z-index: -1;
}

.votar-main-container {
    position: relative;
    z-index: 10;
    padding-top: 40px;
    padding-bottom: 80px;
}


/* Typography */
.votar-title {
    font-family: var(--font-family-title);
    font-size: 3.5rem;
    color: #f9f3e9;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.votar-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    text-align: center;
    color: #f9f3e9;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Divider Graphic */
.votar-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.votar-divider::before,
.votar-divider::after {
    content: '';
    width: 150px;
    height: 1px;
    background-color: #d4af37;
    margin: 0 15px;
    opacity: 0.6;
}

.votar-divider i {
    color: #d4af37;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Info Banner */
.votar-banner {
    background: linear-gradient(135deg, #f2ead6 0%, #e2d1b3 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    padding: 20px 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
    color: #4a151b;
    position: relative;
    overflow: hidden;
}

.votar-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../resources/img/PortadaIndex.webp') center/cover;
    opacity: 0.05;
    mix-blend-mode: multiply;
}

.votar-banner-divider {
    position: absolute;
    left: 50%;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: rgba(74, 21, 27, 0.2);
}

.banner-laurel {
    font-size: 2.5rem;
    color: #af8d42;
    margin-right: 15px;
}

.banner-text-primary {
    font-family: var(--font-family-title);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.banner-text-secondary {
    font-size: 0.9rem;
    color: #6d5b4b;
    margin: 0;
}

.banner-text-secondary strong {
    color: #4a151b;
}

@media (max-width: 768px) {
    .votar-banner {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .votar-banner-divider {
        display: none;
    }

    .banner-laurel {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .banner-col-right {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(74, 21, 27, 0.2);
    }

    .votar-title {
        font-size: 2.2rem;
    }
}

/* Filters and Search */
.filter-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #f9f3e9;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f9f3e9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.filter-select:focus {
    background-color: rgba(20, 0, 5, 0.8);
    border-color: #d4af37;
    color: #f9f3e9;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.filter-select option {
    background-color: #3b0712;
    color: #fff;
}

.search-input-group {
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.search-input-group input {
    background: transparent;
    border: none;
    color: #f9f3e9;
}

.search-input-group input::placeholder {
    color: rgba(249, 243, 233, 0.6);
}

.search-input-group input:focus {
    background: transparent;
    color: #f9f3e9;
    box-shadow: none;
}

.search-input-group .btn {
    border: none;
    color: #f9f3e9;
}

/* Voting Cards */
.voting-card {
    background: #e2d1b3;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.voting-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
    border-radius: 4px;
}

.voting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Card Tags */
.card-tag-finalist {
    position: absolute;
    top: -5px;
    left: -15px;
    background: linear-gradient(to right, #b48e4b, #d8ac5a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.card-tag-likes-top {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: #4a151b;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Image */
.card-img-wrapper {
    position: relative;
    width: 80%;
    margin: 35px auto 15px auto;
    aspect-ratio: 3/4;
    background-color: transparent;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.voting-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.btn-zoom {
    background: #fdfbf7;
    color: #4a151b;
    width: 38px;
    height: 38px;
    border-radius: 15px;
    border: 1px solid #e0d8c8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.btn-zoom:hover {
    background: #fff;
    transform: scale(1.05);
    color: #8b2332;
    border-color: #d4af37;
}

/* Card Content */
.card-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-wine-title {
    font-family: var(--font-family-title);
    font-size: 1.4rem;
    color: #2b1114;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.card-wine-region {
    font-size: 0.9rem;
    color: #2e2e2e;
    margin-bottom: 15px;
}

/* Card Footer */
.card-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
    margin-top: auto;
}

.btn-votar {
    flex: 1;
    background: linear-gradient(to bottom, #c69a4e, #a07833);
    color: #fff;
    border: none;
    border-radius: 15px;
    padding: 8px 0;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-votar:hover {
    background: linear-gradient(to bottom, #d2a95c, #ac8540);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-voted-state {
    background: linear-gradient(to bottom, #4caf50, #388e3c) !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    cursor: default;
}

.btn-voted-state:hover {
    transform: none !important;
    background: linear-gradient(to bottom, #43a047, #2e7d32) !important;
}

.likes-bottom {
    background: #fdfbf7;
    border: 1px solid #e0d8c8;
    color: #4a151b;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 1), 0 2px 4px rgba(0, 0, 0, 0.05);
}

.likes-bottom i {
    color: #8b2332;
}

/* Modal for Image Preview */
.modal-backdrop.show {
    opacity: 0.85;
    background-color: #22050b;
}

#imagePreviewModal .modal-content {
    background: transparent;
    border: none;
}

#imagePreviewModal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: #fff;
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Responsive adjustments for phones to support the 2-column layout */
@media (max-width: 576px) {
    .votar-title {
        font-size: 1.8rem;
    }
    .voting-card {
        padding: 10px 8px;
    }
    .card-tag-finalist {
        font-size: 0.6rem;
        padding: 4px 8px;
        top: -6px;
        left: -6px;
    }
    .card-img-wrapper {
        width: 95%;
        margin: 25px auto 10px auto;
    }
    .card-wine-title {
        font-size: 1.05rem;
    }
    .card-wine-region {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    .card-action-row {
        gap: 5px;
        padding: 0;
    }
    .btn-votar {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    .btn-zoom {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .banner-text-primary {
        font-size: 1.05rem;
    }
    .banner-text-secondary {
        font-size: 0.8rem;
    }
    .votar-main-container {
        padding-top: 15px; /* Reduced from 40px */
    }
    .auth-container {
        flex-direction: column;
        border-radius: 20px !important;
        padding: 12px 15px !important;
        gap: 10px;
        text-align: center;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .auth-text {
        font-size: 1rem !important;
        margin-right: 0 !important;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    .auth-text i {
        margin-right: 0 !important;
        font-size: 1.1rem;
    }
    .auth-avatar {
        margin-right: 0 !important;
        margin-bottom: 5px;
    }
    .auth-btn-admin, .auth-btn-logout {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 5px;
    }
}