/* WC Event Tickets — Frontend Styles */

/* My Tickets grid */
.wcet-my-tickets h2 { margin-bottom: 20px; }

.wcet-tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wcet-ticket-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
    border: 1px solid #e8e8e8;
    transition: transform .2s, box-shadow .2s;
}
.wcet-ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.wcet-ticket-card--past { opacity: .7; }

.wcet-ticket-card__header {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wcet-ticket-card__number {
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

.wcet-ticket-card__body {
    padding: 16px;
}
.wcet-ticket-card__body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1a1a2e;
}
.wcet-ticket-card__body p {
    margin: 4px 0;
    font-size: 13px;
    color: #555;
}

.wcet-ticket-card__footer {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wcet-btn-download,
.wcet-btn-order {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.wcet-btn-download {
    background: #1a1a2e;
    color: #fff;
}
.wcet-btn-download:hover { background: #2d2d4e; color: #fff; }
.wcet-btn-order {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

/* Badge frontend */
.wcet-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.wcet-badge--active    { background: rgba(255,255,255,.2); color: #fff; }
.wcet-badge--used      { background: #e9ecef; color: #666; }
.wcet-badge--cancelled { background: #fde8e8; color: #c0392b; }

/* Holder fields al checkout */
.wcet-holder-fields {
    background: #f8f9fa;
    border-radius: 8px;
}
.wcet-holder-fields h3 { margin-top: 0; }

/* Validator widget */
.wcet-validator-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    max-width: 500px;
}
.wcet-validator-widget h3 { margin-top: 0; }
.wcet-validator-input-row {
    display: flex;
    gap: 8px;
}
.wcet-validator-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}
.wcet-validator-submit {
    padding: 10px 20px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
