/* Modal Styles */

/* Common Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    /* Removed backdrop-filter for better performance */
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #1a1a1a; /* Simplified background */
    border: 1px solid rgba(217, 166, 85, 0.3);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh; /* Reduced from 90vh to 80vh to ensure it fits better on screen */
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Simplified shadow */
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s; /* Faster transition */
    will-change: transform, opacity; /* Hint for browser optimization */
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(245, 245, 245, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
}

.modal-close:hover {
    color: #d9a655;
}

.modal-title {
    color: #d9a655;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(217, 166, 85, 0.3);
}

/* Newsletter Modal Styles */
.newsletter-modal .modal-content {
    max-width: 500px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.email-input {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    background-color: rgba(245, 245, 245, 0.1);
    border: 1px solid rgba(245, 245, 245, 0.3);
    color: #f5f5f5;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: background-color 0.3s, border-color 0.3s;
}

input[type="email"]:focus {
    background-color: rgba(245, 245, 245, 0.15);
    border-color: #d9a655;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #d9a655;
    color: #121212;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

button:hover {
    background-color: #c69144;
}

.newsletter-description {
    text-align: center;
    margin: 1rem 0 1.5rem;
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.6;
}

/* Events Modal Styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    background-color: rgba(245, 245, 245, 0.03);
    border-radius: 8px;
    padding: 1.8rem;
    border: 1px solid rgba(217, 166, 85, 0.2);
    transition: transform 0.2s; /* Simplified transition */
    position: relative;
    overflow: hidden;
}

/* Dekorativer Stripe am oberen Rand */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #d9a655;
    border-radius: 2px 2px 0 0;
}

.event-card:hover {
    transform: translateY(-3px); /* Reduced movement */
    background-color: rgba(245, 245, 245, 0.05);
    border-color: rgba(217, 166, 85, 0.3);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 0.7rem;
    position: relative;
}

.event-date {
    background-color: rgba(217, 166, 85, 0.15);
    color: #d9a655;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(217, 166, 85, 0.2);
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2px 0;
}

/* Standort und Zeit Styling */
.event-meta {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.7rem;
    flex-wrap: wrap;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
}

.event-meta-item svg {
    width: 16px;
    height: 16px;
    color: #d9a655;
    opacity: 0.9;
}

.event-description {
    color: rgba(245, 245, 245, 0.8);
    line-height: 1.7;
    margin: 1.2rem 0;
    font-size: 0.95rem;
}

.event-more {
    display: inline-block;
    color: #d9a655;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(217, 166, 85, 0.4);
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.event-more:hover {
    background-color: #d9a655;
    color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.events-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(217, 166, 85, 0.3);
    text-align: center;
    color: rgba(245, 245, 245, 0.6);
    font-style: italic;
}

/* Event Details Modal */
.event-details-modal .modal-content {
    max-width: 600px;
    transform: translateY(20px); /* Consistent with other modals */
}

.event-details-modal.active .modal-content {
    transform: translateY(0); /* Consistent with other modals */
}

.event-details-title {
    color: #d9a655;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(217, 166, 85, 0.3);
}

.event-details-info {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-details-item {
    background-color: rgba(245, 245, 245, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-details-item svg {
    width: 16px;
    height: 16px;
    color: #d9a655;
}

.event-details-description {
    line-height: 1.8;
    color: rgba(245, 245, 245, 0.9);
    margin-bottom: 1.5rem;
}

.event-details-cta {
    text-align: center;
    margin-top: 1.5rem;
}

.event-details-button {
    display: inline-block;
    background-color: #d9a655;
    color: #121212;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.event-details-button:hover {
    background-color: #c69144;
    transform: translateY(-2px);
}

/* Beer of the Month Modal */
.beer-of-month-modal .modal-content {
    max-width: 900px;
}

.beer-of-month-subtitle {
    text-align: center;
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 2rem;
    font-style: italic;
}

.last-updated {
    text-align: center;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background-color: rgba(245, 245, 245, 0.05);
    border-radius: 4px;
    display: inline-block;
}

.beer-of-month-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.beer-of-month-section {
    flex: 1;
    background-color: rgba(245, 245, 245, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(217, 166, 85, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.beer-of-month-section h3 {
    color: #d9a655;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.4rem;
}

.beer-of-month-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(217, 166, 85, 0.3);
}

.beer-of-month-info h3 {
    color: #d9a655;
    margin-bottom: 1rem;
    text-align: center;
}

.beer-of-month-info p {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 245, 0.9);
}

/* Past Beers Archive Button */
.past-beers-button {
    display: inline-block;
    background-color: rgba(217, 166, 85, 0.3);
    color: #d9a655;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border: 1px solid rgba(217, 166, 85, 0.5);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.past-beers-button:hover {
    background-color: rgba(217, 166, 85, 0.3);
    transform: translateY(-2px);
}

.past-beers-button svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Past Beers Modal */
.past-beers-modal .modal-content {
    max-width: 700px;
}

.past-beers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.past-beer-item {
    display: flex;
    background-color: rgba(245, 245, 245, 0.03);
    border-radius: 6px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(217, 166, 85, 0.2);
    transition: transform 0.2s, background-color 0.2s;
    position: relative;
    overflow: hidden;
}

.past-beer-item:hover {
    background-color: rgba(245, 245, 245, 0.05);
    transform: translateY(-2px);
    border-color: rgba(217, 166, 85, 0.3);
}

.past-beer-date {
    min-width: 120px;
    font-weight: 600;
    color: #d9a655;
    padding-right: 1rem;
    border-right: 1px solid rgba(217, 166, 85, 0.3);
    display: flex;
    align-items: center;
}

.past-beer-details {
    flex: 1;
    padding-left: 1rem;
}

.past-beer-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f5f5f5;
}

.past-beer-info {
    display: flex;
    justify-content: space-between;
    color: rgba(245, 245, 245, 0.7);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.past-beer-type {
    font-style: italic;
}

.past-beer-stats {
    color: rgba(245, 245, 245, 0.6);
}

.past-beer-separator {
    margin: 0 0.5rem;
}

/* Responsive adjustments for past beers */
@media (max-width: 600px) {
    .past-beer-item {
        flex-direction: column;
    }
    
    .past-beer-date {
        border-right: none;
        border-bottom: 1px solid rgba(217, 166, 85, 0.3);
        padding-right: 0;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .past-beer-details {
        padding-left: 0;
    }
    
    .past-beer-info {
        flex-direction: column;
        gap: 0.3rem;
    }
}
