/* ============================================
   Event Ticket Styles
   Real Ticket Design with Perforated Edge
   ============================================ */

:root {
    --vf-primary: #EE1D48;
    --vf-primary-light: #FFF5F7;
    --vf-yellow: #f59e0b;
    --vf-green: #47c363;
    --vf-purple: #8b5cf6;
    --vf-border: #e5e7eb;
    --vf-gray-50: #f9fafb;
    --vf-gray-100: #f3f4f6;
    --vf-gray-300: #d1d5db;
    --vf-gray-600: #4b5563;
    --vf-gray-700: #374151;
    --vf-gray-900: #1a202c;
}

.ticket-options-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.ticket {
    position: relative;
    background: #ffffff;
    border: 2px solid var(--vf-gray-200);
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Perforated circles at top edge - half above, half on ticket */
.ticket::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
    right: 0;
    height: 14px;
    background: 
        radial-gradient(circle at 15px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 45px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 75px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 105px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 135px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 165px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 195px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 225px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 255px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px),
        radial-gradient(circle at 285px 7px, var(--vf-gray-50) 0, var(--vf-gray-50) 7px, transparent 7px);
    background-repeat: repeat-x;
    z-index: 10;
    pointer-events: none;
}

.ticket:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(238, 29, 72, 0.15);
    border-color: var(--vf-primary);
}

/* Ticket Stub (Left Side) */
.ticket-stub {
    position: relative;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px dashed rgba(255, 255, 255, 0.3);
}

.ticket-stub::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10px;
    width: 18px;
    height: 18px;
    background: var(--vf-gray-50);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ticket-price-large {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ticket-price-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Ticket Body */
.ticket-body {
    padding: 20px 18px 16px;
    position: relative;
    background: white;
}

.ticket-popular-badge {
    position: absolute;
    top: -2px;
    right: 15px;
    background: var(--vf-primary);
    color: #fff;
    padding: 4px 14px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    box-shadow: 0 4px 12px rgba(238, 29, 72, 0.4);
}

.ticket-type {
    font-size: 18px;
    font-weight: 800;
    color: var(--vf-gray-900);
    margin-bottom: 8px;
    line-height: 1.2;
}

.ticket-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--vf-gray-600);
    margin-bottom: 12px;
    min-height: auto;
}

.ticket-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
}

.ticket-features li {
    font-size: 12px;
    color: var(--vf-gray-700);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed var(--vf-gray-100);
}

.ticket-features li:last-child {
    border-bottom: none;
}

.ticket-features li i {
    color: var(--vf-green);
    font-size: 12px;
    width: 14px;
    flex-shrink: 0;
}

.ticket-select-btn {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--vf-primary);
    color: var(--vf-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.ticket-select-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--vf-primary);
    transition: left 0.4s;
    z-index: 0;
}

.ticket-select-btn span {
    position: relative;
    z-index: 1;
}

.ticket-select-btn:hover::before {
    left: 0;
}

.ticket-select-btn:hover {
    color: #fff;
    border-color: var(--vf-primary);
}

.ticket-code {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--vf-gray-200);
}

.ticket-code-label {
    font-size: 9px;
    color: var(--vf-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.ticket-code-value {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--vf-gray-900);
    letter-spacing: 1px;
}

/* Featured Ticket (Premium) - Primary Red Theme */
.ticket-featured {
    border-color: var(--vf-primary);
    transform: scale(1.05);
    z-index: 2;
}

.ticket-featured .ticket-stub {
    background: linear-gradient(135deg, var(--vf-primary) 0%, var(--vf-primary-dark) 100%);
}

.ticket-featured:hover {
    transform: translateY(-8px) scale(1.07);
    border-color: var(--vf-primary);
}

/* Business Ticket - Blue Theme */
.ticket-business .ticket-stub {
    background: linear-gradient(135deg, var(--vf-blue) 0%, #2a9fd6 100%);
}

/* Ticket Barcode */
.ticket-barcode {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--vf-gray-200);
    text-align: center;
}

.barcode-lines {
    display: flex;
    justify-content: center;
    gap: 1px;
    height: 28px;
    margin-bottom: 5px;
}

.barcode-lines span {
    width: 2px;
    background: var(--vf-gray-900);
    display: inline-block;
}

.barcode-lines span:nth-child(2n) {
    width: 3px;
}

.barcode-lines span:nth-child(3n) {
    width: 1px;
}

.barcode-lines span:nth-child(5n) {
    width: 4px;
}

.barcode-number {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: var(--vf-gray-600);
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 991px) {
    .ticket-options-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ticket-featured {
        transform: scale(1);
    }
    
    .ticket-featured:hover {
        transform: translateY(-8px) scale(1.02);
    }
}

@media (max-width: 767px) {
    .ticket-stub {
        padding: 15px 12px;
    }
    
    .ticket-price-large {
        font-size: 28px;
    }
    
    .ticket-body {
        padding: 16px 14px 12px;
    }
    
    .ticket-type {
        font-size: 16px;
    }
    
    .ticket-description {
        font-size: 12px;
    }
    
    .ticket-features li {
        font-size: 11px;
        padding: 4px 0;
    }
}

