/**
 * Find My Tickets - Styles
 * Responsive design for the ticket lookup interface
 */

.fe-find-tickets-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* Step Indicator */
.fe-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.fe-step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.fe-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.fe-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.fe-step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.fe-step-active .fe-step-number {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.fe-step-complete .fe-step-number {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.fe-step-complete .fe-step-number::after {
    content: '✓';
}

/* Step Content */
.fe-step-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fe-step-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 28px;
}

.fe-step-content p {
    color: #666;
    line-height: 1.6;
}

/* Form Elements */
.fe-form-group {
    margin-bottom: 24px;
}

.fe-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#fe-email-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

#fe-email-input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Code Input */
.fe-code-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}

.fe-code-digit {
    width: 50px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.fe-code-digit:focus {
    outline: none;
    border-color: #0073aa;
    background: #f8f9fa;
}

.fe-code-expiry {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Buttons */
.fe-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.fe-btn-primary {
    background: #0073aa;
    color: #fff;
}

.fe-btn-primary:hover {
    background: #005a87;
}

.fe-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.fe-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.fe-btn-secondary:hover {
    background: #e0e0e0;
}

.fe-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.fe-btn-link {
    background: none;
    border: none;
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
}

.fe-btn-link:hover {
    color: #005a87;
}

.fe-button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.fe-resend-code {
    text-align: center;
    margin-top: 16px;
}

.fe-new-search {
    text-align: center;
    margin-top: 24px;
}

/* Messages */
.fe-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 16px 0;
    display: none;
}

.fe-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.fe-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Tickets Grid */
.fe-tickets-intro {
    margin-bottom: 24px;
}

.fe-tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.fe-ticket-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.fe-ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fe-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.fe-ticket-name {
    margin: 0;
    font-size: 18px;
    color: #333;
    flex: 1;
}

.fe-ticket-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-used {
    background: #cce5ff;
    color: #004085;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.fe-ticket-details {
    margin-bottom: 16px;
}

.fe-ticket-info {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fe-ticket-info:last-child {
    border-bottom: none;
}

.fe-label {
    color: #666;
    font-weight: 500;
}

.fe-value {
    color: #333;
    font-weight: 600;
}

.fe-ticket-qr {
    text-align: center;
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px;
}

.fe-qr-image {
    max-width: 200px;
    height: auto;
    border: 2px solid #0073aa;
    background: #fff;
    padding: 8px;
}

.fe-ticket-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.fe-ticket-actions .fe-btn {
    flex: 1;
}

.fe-no-qr {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 16px;
}

.fe-no-tickets {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Spinner */
.fe-btn-spinner::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fe-spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes fe-spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .fe-find-tickets-container {
        padding: 10px;
        margin: 20px auto;
    }

    .fe-step-content {
        padding: 24px 20px;
    }

    .fe-step-content h2 {
        font-size: 24px;
    }

    .fe-step-indicator::before {
        left: 10%;
        right: 10%;
    }

    .fe-step-label {
        font-size: 12px;
    }

    .fe-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .fe-code-input-group {
        gap: 8px;
    }

    .fe-code-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .fe-button-group {
        flex-direction: column;
    }

    .fe-tickets-grid {
        grid-template-columns: 1fr;
    }

    .fe-ticket-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fe-step-content {
        padding: 20px 16px;
    }

    .fe-step-indicator {
        margin-bottom: 24px;
    }

    .fe-code-digit {
        width: 35px;
        height: 45px;
        font-size: 18px;
    }
}

