/* Base styles */
body {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    background-color: black;
    color: white;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    contain: layout;
}

/* Event card styles */
.event-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.event-image-container {
    position: relative;
    overflow: hidden;
}

.event-image {
    aspect-ratio: 16/9;
    background: #1a1a1a;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Instagram link styles */
.instagram-link, .instagram-link-footer {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease;
}

.instagram-link:hover, .instagram-link-footer:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.instagram-link img, .instagram-link-footer img {
    width: 24px;
    height: 24px;
}

/* Event header styles */
.event-header {
    padding: 10px 15px;
}

.event-header h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    font-size: 38px;
    min-height: 46px;
}

.event-header .date {
    margin: 0 auto;
    font-size: 20px;
    color: #ccc;
}

/* Event details styles */
.event-details {
    font-size: 16px;
    margin: 12px 0 0;
    display: flex;
    justify-content: space-between;
}

.event-name-container {
    display: flex;
    justify-content: flex-start;
}

.event-details a, .event-content a {
    text-decoration: underline;
}

/* Event content styles */
.event-content {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.event-content p {
    margin: 5px;
    line-height: 1.4;
    word-wrap: normal;
}

/* Rating styles */
.rating {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
}

.star {
    color: gold;
    margin-right: 5px;
}

/* Members styles */
.members img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: -10px;
    border: 2px solid white;
}

/* Ticket styles */
.available-tickets {
    display: none;
    margin: 15px 0;
    padding: 8px 12px;
    text-align: center;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.available-tickets.running-low {
    color: #FF6B6B;
    animation: pulse 2s infinite ease-in-out;
}

.ticket-selection {
    min-height: 200px;
    padding: 20px;
    contain: layout;
}

.ticket-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    justify-content: space-between;
}

.ticket-header label {
    font-size: 16px;
    text-align: left;
}

/* Quantity controls */
.quantity-wrapper {
    display: flex;
    align-items: right;
    max-width: 150px;
    padding: 0;
}

.quantity-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Consent styles */
.consent-option {
    margin-top: 1.5em;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.consent-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    margin-top: 2px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: transparent;
}

.consent-option input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.consent-option input[type="checkbox"]:checked {
    background-color: #fff;
    border-color: #fff;
}

.consent-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.consent-option label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    line-height: 1.5;
    cursor: pointer;
}

.consent-option a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

/* Emoji styles */
.emoji-wrapper {
    display: inline-block;
    transform: translateY(1px);
    margin: 0 2px;
}

/* Quantity input styles */
.quantity-input {
    background: transparent;
    border: none;
    color: white;
    width: 60px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    margin: 0 10px;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action button styles */
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: white;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s;
}

.action-button:disabled {
    background-color: #666;
    cursor: wait;
    opacity: 0.9;
}

@keyframes dots {
    0%, 20% { content: ""; }
    40% { content: "."; }
    60% { content: ".."; }
    80% { content: "..."; }
    100% { content: ""; }
}

.action-button.loading::after {
    content: "";
    animation: dots 1.5s infinite;
    margin-left: 4px;
}

/* Price options styles */
.price-options {
    display: none;
    margin: 15px 0;
}

.price-options.visible {
    display: block;
}

.discount-option {
    display: flex;
    align-items: center;
    margin-left: 15px;
    justify-content: space-between;
}

.discount-option label {
    font-size: 16px;
    text-align: left;
}

.discount-button {
    display: flex;
    gap: 10px;
}

.discount-wrapper {
    display: flex;
    align-items: right;
    max-width: 150px;
    padding: 0;
}

/* Discount checkbox styles */
.discount-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.discount-checkbox:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.discount-checkbox:checked {
    background-color: rgba(255, 255, 255, 0.3);
}

.discount-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Info button and tooltip styles */
.info-button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-style: italic;
    padding: 0;
}

.info-container {
    position: relative;
    display: inline-block;
}

.info-tooltip {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.info-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

.info-container:hover .info-tooltip {
    display: block;
}

/* Link styles */
a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer styles */
footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

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

.imprint-link,
.privacy-link {
    color: #fff;
    text-decoration: none;
}

.footer-img {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 30px;
    height: auto;
    margin-right: 10px;
    align-items: center;
}

/* Media queries */
@media (max-width: 400px) {
    .event-header h2 {
        font-family: "Poppins", sans-serif;
        font-weight: 500;
        font-style: normal;
        margin: 0;
        font-size: 32px;
    }
}