/**
 * H2JEvents - Front Stylesheet
 *
 * @author    H2J Ecosystem <info@h2j.pro>
 * @copyright 2024-2026 H2J sas RCS 978391720
 * @license   Commercial license
 *
 * H2J Design System: Gate #2c3e50, Rose #c0577c
 */

/* === EVENT PAGE === */
.h2j-event-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
.h2j-event-hero {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
}
.h2j-event-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px;
}
.h2j-event-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.h2j-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #4b5563;
}
.h2j-meta-icon {
    font-size: 18px;
}
.h2j-event-actions {
    margin-top: 20px;
}
.h2j-btn-book {
    display: inline-block;
    padding: 14px 40px;
    background: #c0577c;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
}
.h2j-btn-book:hover {
    background: #a4486a;
    color: #fff;
    text-decoration: none;
}
.h2j-event-notice {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
.h2j-notice-past {
    background: #fef3c7;
    color: #92400e;
}
.h2j-notice-closed {
    background: #fee2e2;
    color: #991b1b;
}
.h2j-event-deadline {
    margin-top: 12px;
    font-size: 13px;
    color: #ef4444;
    font-weight: 600;
}

/* === EVENT SECTIONS === */
.h2j-event-section {
    margin-bottom: 30px;
    padding: 0 20px;
}
.h2j-event-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}
.h2j-event-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* === INFO TABLE === */
.h2j-info-table {
    width: 100%;
    border-collapse: collapse;
}
.h2j-info-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.h2j-info-label {
    font-weight: 600;
    color: #2c3e50;
    width: 180px;
}

/* === GOOGLE MAP === */
.h2j-event-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* === MY E-PASSES === */
.h2j-myepass {
    max-width: 960px;
    margin: 0 auto;
}
.h2j-back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: #2c3e50;
    font-size: 14px;
    text-decoration: none;
}
.h2j-back-link:hover {
    color: #c0577c;
}

/* === E-PASS TABLE (like 2kpass) === */
.h2j-epass-table-wrap {
    overflow-x: auto;
}
.h2j-epass-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.h2j-epass-table thead th {
    background: #2c3e50;
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
.h2j-epass-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}
.h2j-epass-table tbody tr:nth-child(even) {
    background: #f0f4f7;
}
.h2j-epass-table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
}
.h2j-epass-event {
    font-weight: 600;
}
.h2j-epass-price {
    color: #2c3e50;
    font-weight: 600;
}
.h2j-icon-link {
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}
.h2j-epass-row.h2j-epass-used {
    opacity: 0.6;
}
.h2j-epass-row.h2j-epass-cancelled td {
    text-decoration: line-through;
    opacity: 0.5;
}

/* === BADGES === */
.h2j-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.h2j-badge-success { background: #d1fae5; color: #065f46; }
.h2j-badge-info { background: #dbeafe; color: #1e40af; }
.h2j-badge-warning { background: #fef3c7; color: #92400e; }
.h2j-badge-danger { background: #fee2e2; color: #991b1b; }

/* === E-PASS DETAIL CARD (like 2kpass) === */
.h2j-myepass-detail {
    max-width: 700px;
    margin: 0 auto;
}
.h2j-epass-card {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.h2j-epass-card-header {
    background: #2c3e50;
    color: #fff;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
}
.h2j-epass-card-body {
    padding: 24px 20px;
}
.h2j-epass-field {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
    color: #374151;
}
.h2j-epass-field strong {
    color: #2c3e50;
}
.h2j-epass-warning {
    border-bottom: none;
    color: #92400e;
    font-style: italic;
    font-size: 13px;
}
.h2j-epass-barcode {
    text-align: center;
    padding: 20px 0;
}
.h2j-barcode-img {
    max-width: 250px;
    height: auto;
}
.h2j-epass-download {
    text-align: center;
    padding: 16px 0;
}
.h2j-btn-download {
    display: inline-block;
    padding: 12px 30px;
    background: #2c3e50;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
}
.h2j-btn-download:hover {
    background: #1a252f;
    color: #fff;
}

/* === STATUS BANNER === */
.h2j-epass-status-banner {
    text-align: center;
    padding: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 6px;
    margin-top: 10px;
}
.h2j-status-used {
    background: #dbeafe;
    color: #1e40af;
}
.h2j-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.h2j-status-expired {
    background: #fef3c7;
    color: #92400e;
}

/* === PRODUCT EVENT INFO === */
.h2j-product-event-info {
    background: #f0f4f7;
    border-left: 4px solid #2c3e50;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 0 6px 6px 0;
}
.h2j-pei-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 6px;
}
.h2j-pei-icon {
    font-size: 16px;
}
.h2j-pei-links {
    margin-top: 10px;
}
.h2j-pei-link {
    color: #c0577c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.h2j-pei-link:hover {
    text-decoration: underline;
}
.h2j-pei-notice {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* === ORDER CONFIRMATION === */
.h2j-order-epasses {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.h2j-order-epasses h3 {
    margin: 0 0 10px;
    color: #2c3e50;
}
.h2j-order-epass-item {
    padding: 8px 0;
    border-bottom: 1px solid #d1fae5;
    font-size: 14px;
}

/* === EMPTY STATE === */
.h2j-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* === CUSTOMER ACCOUNT LINK === */
#h2j-epasses-link .link-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .h2j-event-title {
        font-size: 22px;
    }
    .h2j-epass-table thead th,
    .h2j-epass-table tbody td {
        padding: 8px 10px;
        font-size: 13px;
    }
    .h2j-event-map {
        height: 250px;
    }
}
