/**
 * QR System Styles
 * 
 * Purpose: Custom styling for QR code system
 * - QR status page layout
 * - Success/error message styling
 * - Responsive design
 * - Matches site design system (Syne + Wix Madefor Display)
 * 
 * @package Astra Child
 * @since 1.0.0
 * @version 1.2.0
 * @updated Pride branding & animations
 */

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================================================
   QR Status Page - Main Container
   ========================================================================== */

.qr-status-page {
    padding: 80px 20px;
    min-height: 75vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.qr-status-container {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 60px 50px;
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a2a;
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   Icons - Visual Feedback
   ========================================================================== */

.qr-icon {
    margin: 0 auto 32px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.qr-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
    filter: drop-shadow(0 4px 12px currentColor);
}

.qr-icon-success {
    color: #10b981;
}

.qr-icon-success svg {
    animation: pulse 2s ease-in-out infinite;
}

.qr-icon-expired {
    color: #f59e0b;
}

.qr-icon-error {
    color: #ef4444;
}

/* ==========================================================================
   Typography - Headings (Syne)
   ========================================================================== */

.qr-status-success h1,
.qr-status-expired h1,
.qr-status-invalid h1 {
    font-family: "Syne", Sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

/* ==========================================================================
   Success State - Verified QR Code
   ========================================================================== */

.qr-status-success h1 {
    color: #059669;
}

/* Customer Name Badge */
.qr-customer-badge {
    display: inline-block;
    margin: 20px 0;
    padding: 16px 32px;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 10px;
}

.qr-customer-name {
    margin: 0;
    font-family: "Syne", Sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
}

.qr-customer-label {
    margin: 4px 0 0 0;
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-success-message {
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 18px;
    color: #10b981;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ==========================================================================
   Expired State - QR Code Expired
   ========================================================================== */

.qr-status-expired h1 {
    color: #d97706;
}

.qr-expired-message {
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 18px;
    color: #f59e0b;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ==========================================================================
   Invalid State - QR Code Not Found
   ========================================================================== */

.qr-status-invalid h1 {
    color: #dc2626;
}

.qr-error-message {
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 18px;
    color: #ef4444;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ==========================================================================
   Details Section - Meta Information
   ========================================================================== */

.qr-details {
    margin: 40px 0;
    padding: 28px;
    background: #0a0a0a;
    border-radius: 16px;
    text-align: left;
    border: 1px solid #2a2a2a;
}

.qr-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #2a2a2a;
}

.qr-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.qr-detail-item:first-child {
    padding-top: 0;
}

.qr-detail-label {
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.qr-detail-value {
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #e0e0e0;
}

/* Status Badge */
.qr-status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Wix Madefor Display", Sans-serif;
}

.qr-status-active {
    background: #d1fae5;
    color: #065f46;
}

/* ==========================================================================
   Help Text - Additional Information
   ========================================================================== */

.qr-help-text {
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 16px;
    color: #b0b0b0;
    line-height: 1.7;
    margin: 28px 0;
}

/* ==========================================================================
   Buttons - CTA Styling (Matches Site Design)
   ========================================================================== */

.qr-button {
    display: inline-block;
    background-color: #ffffff;
    font-family: "Wix Madefor Display", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #000000;
    border-style: solid;
    border-width: 2px;
    border-color: #000000;
    border-radius: 50px;
    padding: 15px 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    cursor: pointer;
}

.qr-button-primary {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
}

.qr-button-primary:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Responsive Design - Mobile Optimization
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .qr-status-page {
        padding: 60px 20px;
    }
    
    .qr-status-container {
        padding: 40px 30px;
        border-radius: 16px;
    }
    
    .qr-status-success h1,
    .qr-status-expired h1,
    .qr-status-invalid h1 {
        font-size: 30px;
    }
    
    .qr-customer-badge {
        padding: 14px 28px;
    }
    
    .qr-customer-name {
        font-size: 20px;
    }
    
    .qr-customer-label {
        font-size: 12px;
    }
    
    .qr-success-message,
    .qr-expired-message,
    .qr-error-message {
        font-size: 16px;
    }
    
    .qr-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }
    
    .qr-details {
        padding: 20px;
        margin: 32px 0;
    }
    
    .qr-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }
    
    .qr-button {
        width: 100%;
        padding: 14px 32px;
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .qr-status-page {
        padding: 40px 16px;
    }
    
    .qr-status-container {
        padding: 32px 24px;
        border-radius: 12px;
    }
    
    .qr-status-success h1,
    .qr-status-expired h1,
    .qr-status-invalid h1 {
        font-size: 26px;
    }
    
    .qr-customer-badge {
        padding: 12px 24px;
        margin: 16px 0;
    }
    
    .qr-customer-name {
        font-size: 18px;
    }
    
    .qr-customer-label {
        font-size: 11px;
    }
    
    .qr-success-message,
    .qr-expired-message,
    .qr-error-message {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .qr-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .qr-details {
        padding: 18px;
        margin: 28px 0;
    }
    
    .qr-detail-label,
    .qr-detail-value {
        font-size: 15px;
    }
    
    .qr-help-text {
        font-size: 15px;
        margin: 24px 0;
    }
    
    .qr-button {
        padding: 13px 30px;
        font-size: 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .qr-status-container {
        padding: 28px 20px;
    }
    
    .qr-status-success h1,
    .qr-status-expired h1,
    .qr-status-invalid h1 {
        font-size: 24px;
    }
    
    .qr-icon {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   Pride Branding
   ========================================================================== */

.qr-status-container::before {
    content: "PRIDE UP BRIGHTON";
    display: block;
    font-family: "Syne", Sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 40px;
    text-transform: uppercase;
}



/* ==========================================================================
   Admin Interface (placeholder for future admin styles)
   ========================================================================== */

/* .qr-admin-page - Admin page styles will be added here */
/* .qr-meta-box - Order meta box styles will be added here */
