/* WooCommerce Ticket Manager - Frontend Styles */

/* Ticket Information Display */
.wc-ticket-info {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    transition: all 0.3s ease;
}

.wc-ticket-info:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.wc-ticket-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
    font-size: 18px;
    border-bottom: 2px solid #666;
    padding-bottom: 8px;
}

.wc-ticket-info p {
    margin: 8px 0;
    line-height: 1.5;
    color: white;
}

.wc-ticket-info strong {
    color: white;
    font-weight: 600;
}

/* Icons for ticket info */
.wc-ticket-info .dashicons {
    margin-right: 8px;
    color: #ccc;
    vertical-align: middle;
}

/* Countdown Timer */
.wc-ticket-countdown {
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 12px;
    margin: 15px 0;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #ffcc00;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Ticket Product Styling */
.wc-ticket-product .summary {
    position: relative;
}

.wc-ticket-product .summary:before {
    content: '🎫';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0.3;
}

/* Quantity Notices */
.wc-ticket-quantity-notice {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ffcc00;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

/* Cart Item Data */
.wc-ticket-item-data {
    background: #1a1a1a;
    border-left: 3px solid #666;
    padding: 8px 12px;
    margin: 5px 0;
    font-size: 13px;
}

.wc-ticket-item-data dt {
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
}

.wc-ticket-item-data dd {
    margin: 0 0 5px 0;
    color: #ccc;
}

/* Checkout Enhancements */
.woocommerce-checkout-review-order-table .wc-ticket-item-data {
    margin-top: 5px;
}

/* Order Received Page */
.woocommerce-order-received .wc-ticket-item-data {
    background: #1a3a1a;
    border-left-color: #4a7c4a;
}

/* Print Button */
.wc-print-ticket {
    background: #333;
    color: white;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.wc-print-ticket:hover {
    background: #444;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .wc-ticket-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    .wc-ticket-info h3 {
        font-size: 16px;
    }
    
    .wc-ticket-countdown {
        padding: 10px;
        font-size: 14px;
    }
    
    .wc-ticket-product .summary:before {
        display: none;
    }
}

/* Loading States */
.wc-ticket-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.wc-ticket-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: wc-ticket-spin 1s linear infinite;
}

@keyframes wc-ticket-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Messages */
.wc-ticket-success {
    background: #1a3a1a;
    border: 1px solid #4a7c4a;
    color: #90ee90;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Error Messages */
.wc-ticket-error {
    background: #3a1a1a;
    border: 1px solid #7c4a4a;
    color: #ff9999;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Warning Messages */
.wc-ticket-warning {
    background: #3a3a1a;
    border: 1px solid #7c7c4a;
    color: #ffcc00;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Ticket Badge */
.wc-ticket-badge {
    display: inline-block;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Event Date Highlighting */
.wc-event-date {
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    margin: 5px 0;
}

/* Location Styling */
.wc-event-location {
    background: #1a1a1a;
    border-left: 4px solid #666;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 0 4px 4px 0;
    color: white;
}

/* Category Styling */
.wc-ticket-category {
    background: #2a2a2a;
    color: #ccc;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 5px 0;
}

/* Enhanced Product Gallery for Tickets */
.wc-ticket-product .woocommerce-product-gallery {
    border: 2px dashed #666;
    border-radius: 8px;
    background: #1a1a1a;
}

/* Add to Cart Button Enhancement for Tickets */
.wc-ticket-product .single_add_to_cart_button {
    background: #333;
    border: 1px solid #555;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.wc-ticket-product .single_add_to_cart_button:hover {
    background: #444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Ticket Validation Messages */
.wc-ticket-validation {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.wc-ticket-validation.success {
    background: #1a3a1a;
    border: 1px solid #4a7c4a;
    color: #90ee90;
}

.wc-ticket-validation.error {
    background: #3a1a1a;
    border: 1px solid #7c4a4a;
    color: #ff9999;
}

/* Accessibility Improvements */
.wc-ticket-info:focus,
.wc-print-ticket:focus,
.single_add_to_cart_button:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

/* Dark Mode Support - Already dark theme, no changes needed */

/* Print Styles */
@media print {
    .wc-ticket-info {
        border: 2px solid #000;
        background: white;
        color: black;
        page-break-inside: avoid;
    }
    
    .wc-print-ticket,
    .wc-ticket-countdown {
        display: none;
    }
    
    .wc-ticket-info h3 {
        color: black;
        border-bottom-color: black;
    }
} 

.woocommerce-additional-fields {
    display: block !important;
}

.wc-ticket-hotels-banner {
    margin-top: 24px;
    text-align: center;
}

.wc-ticket-hotels-banner-link {
    display: block;
    text-decoration: none;
}

.wc-ticket-hotels-banner-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.wc-ticket-hotels-button {
    display: inline-block;
    margin-top: 14px;
    padding: 12px 22px;
    border-radius: 8px;
    background: #8f2bff;
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.wc-ticket-hotels-button:hover {
    opacity: 0.9;
    text-decoration: none;
}