/**
 * Product Event Display Styles
 *
 * @package TicketManager
 * @version 1.0.0
 */

/* ==========================================================================
   Product Event Information Display
   ========================================================================== */

.tm-product-event-info {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tm-product-event-info h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.tm-event-details {
    line-height: 1.6;
}

.tm-event-details p {
    margin: 0 0 10px 0;
    color: #555;
}

.tm-event-details p:last-child {
    margin-bottom: 0;
}

.tm-event-details strong {
    color: #333;
    font-weight: 600;
    margin-right: 8px;
}

.tm-event-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.tm-event-description p {
    margin-top: 8px;
    font-style: italic;
    color: #666;
}

/* Event status indicators */
.tm-event-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tm-event-status.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tm-event-status.upcoming {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.tm-event-status.past {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ticket availability indicator */
.tm-ticket-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.tm-availability-bar {
    flex: 1;
    height: 8px;
    background: #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
}

.tm-availability-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    transition: width 0.3s ease;
}

.tm-availability-text {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    .tm-product-event-info {
        padding: 15px;
        margin: 15px 0;
    }

    .tm-product-event-info h3 {
        font-size: 16px;
    }

    .tm-event-details p {
        font-size: 14px;
    }

    .tm-ticket-availability {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .tm-availability-bar {
        width: 100%;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .tm-product-event-info {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .tm-product-event-info h3 {
        color: #f7fafc;
        border-bottom-color: #4299e1;
    }

    .tm-event-details strong {
        color: #f7fafc;
    }

    .tm-event-details p {
        color: #cbd5e0;
    }

    .tm-event-description {
        border-top-color: #4a5568;
    }

    .tm-event-description p {
        color: #a0aec0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tm-product-event-info {
        border-width: 2px;
        border-color: #000;
    }

    .tm-product-event-info h3 {
        border-bottom-width: 3px;
        border-bottom-color: #000;
    }

    .tm-event-details strong {
        color: #000;
        font-weight: 700;
    }
}