/*
 * ====================================================================
 * UMFRAGE/POLL STYLES (umfrage_aktuelle_bs5.twig & umfrage_ergebnis_bs5.twig)
 * ====================================================================
 * Styles für die Umfrage-Templates
 */

/* Content Wrapper */
.umfrage-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Umfrage Hero Section */
.umfrage-hero {
    background: linear-gradient(135deg, var(--fm-dark) 0%, var(--fm-gold) 100%);
    min-height: 300px;
}

/* Poll Info Section */
.poll-info-section {
    background: var(--fm-bg-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.poll-title {
    color: var(--fm-text-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.poll-text {
    color: var(--fm-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Section Titles */
.section-title {
    color: var(--fm-text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--fm-gold);
}

.section-title i {
    color: var(--fm-gold);
}

/* Poll Option Cards */
.poll-option-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.poll-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Option Number */
.option-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--fm-gold);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Option Image */
.option-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.option-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.poll-option-card:hover .option-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.placeholder-image {
    background: var(--fm-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-text-muted);
    font-size: 3rem;
}

/* Option Content */
.option-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.option-title {
    color: var(--fm-text-primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.option-description {
    color: var(--fm-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Vote Button */
.option-vote {
    padding: 0 1.5rem 1.5rem;
}

.btn-vote {
    width: 100%;
    background: linear-gradient(135deg, var(--fm-blue) 0%, var(--fm-red) 100%);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-vote:hover {
    background: linear-gradient(135deg, var(--fm-red) 0%, var(--fm-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

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

/* Pulse Animation */
.pulse-animation {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Poll Actions */
.poll-actions {
    background: var(--fm-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

/* No Poll Section */
.no-poll-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

/* Preview Specific Styles */
.poll-preview-section {
    background: var(--fm-bg-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.preview-image-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.preview-image-container img {
    max-height: 400px;
    width: auto;
    border-radius: 8px;
}

.preview-placeholder {
    background: var(--fm-bg-light);
    border-radius: 12px;
    border: 2px dashed var(--fm-border);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    color: var(--fm-text-secondary);
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    margin-bottom: 1rem;
}

.info-card .card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--fm-text-primary);
}

.info-card .card-text {
    color: var(--fm-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Alert Styling - Using global FM design from custom-bootstrap.css */
/* Alerts now use consistent FM styling:
   - Golden border (1px solid var(--fm-gold))
   - Light gray background (var(--fm-light-gray))
   - Black text (var(--fm-black))
   See custom-bootstrap.css for global alert definitions */

/* Alert heading enhancement for icon alignment */
.alert-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badge Styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Button Styling */
.btn-primary {
    background-color: var(--fm-blue);
    border-color: var(--fm-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--fm-red);
    border-color: var(--fm-red);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--fm-blue);
    color: var(--fm-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-primary:hover {
    background-color: var(--fm-blue);
    border-color: var(--fm-blue);
    color: white;
}

.btn-outline-secondary {
    border-color: var(--fm-text-secondary);
    color: var(--fm-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-secondary:hover {
    background-color: var(--fm-text-secondary);
    border-color: var(--fm-text-secondary);
    color: white;
}

/* Modal Styling */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid var(--fm-border);
    background: var(--fm-bg-light);
    border-radius: 12px 12px 0 0;
}

.modal-body img {
    max-height: 400px;
    width: auto;
    border-radius: 8px;
}

/* Results Specific Styles */
.results-countdown {
    background: linear-gradient(135deg, var(--fm-dark) 0%, var(--fm-blue) 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.countdown-item {
    text-align: center;
    flex: 0 0 auto;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--fm-gold);
    display: block;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-size: 0.9rem;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.result-option-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.result-percentage {
    background: var(--fm-gold);
    color: var(--fm-dark);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.result-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.result-content {
    padding: 1.5rem;
}

.result-title {
    color: var(--fm-text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive Anpassungen */
@media (max-width: 1199px) {
    .umfrage-content-wrapper {
        padding: 1.5rem 0.75rem;
    }
    
    .poll-info-section {
        padding: 1.5rem;
    }
    
    .poll-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991px) {
    .umfrage-content-wrapper {
        padding: 1rem 0.5rem;
    }
    
    .option-image-container {
        height: 220px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .poll-actions .row > div {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .poll-actions .row > div:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .umfrage-content-wrapper {
        padding: 1rem 0.25rem;
    }
    
    .umfrage-hero {
        min-height: 250px;
    }
    
    .poll-info-section {
        padding: 1rem;
    }
    
    .poll-title {
        font-size: 1.5rem;
    }
    
    .poll-text {
        font-size: 1rem;
    }
    
    .option-image-container {
        height: 200px;
    }
    
    .option-content {
        padding: 1rem;
    }
    
    .option-vote {
        padding: 0 1rem 1rem;
    }
    
    .option-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .countdown-grid {
        gap: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .umfrage-content-wrapper {
        padding: 0.75rem 0.125rem;
    }
    
    .poll-info-section {
        border-radius: 8px;
        padding: 0.75rem;
    }
    
    .poll-title {
        font-size: 1.3rem;
    }
    
    .option-image-container {
        height: 180px;
    }
    
    .option-content {
        padding: 0.75rem;
    }
    
    .option-title {
        font-size: 1.1rem;
    }
    
    .option-vote {
        padding: 0 0.75rem 0.75rem;
    }
    
    .btn-vote {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .umfrage-content-wrapper {
        max-width: none;
        padding: 0;
    }
    
    .umfrage-hero {
        background: none;
        color: black;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .poll-option-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
    
    .poll-option-card:hover {
        transform: none;
    }
    
    .option-image {
        height: 150px;
    }
    
    .btn-vote,
    .alert,
    .poll-actions {
        display: none;
    }
    
    .option-vote {
        display: none;
    }
}