/**
 * Cutoff Time Popup - Frontend Styles
 * 
 * This CSS file styles the popup to match the design exactly.
 * The design features a gradient background (blue to pink) with
 * a clean, modern card layout.
 */

/* Overlay - Full screen semi-transparent background */
.ctpopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ctpopupFadeIn 0.3s ease-in-out;
}

/* Fade in animation */
@keyframes ctpopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Popup Container - The white rounded card */
.ctpopup-container {
    position: relative;
    background: #ffffff;
    border-radius: 30px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: ctpopupSlideIn 0.4s ease-out;
    overflow: hidden;
}

/* Slide in animation */
@keyframes ctpopupSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.ctpopup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctpopup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

/* Content Area */
.ctpopup-content {
    padding: 60px 50px 50px;
}

/* Custom Image */
.ctpopup-custom-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Default HTML Design */
.ctpopup-design {
    background: linear-gradient(135deg, #b3e5fc 0%, #ffffff 50%, #f8bbd0 100%);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
}

/* Title - "9 PM CUT OFF!" */
.ctpopup-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 56px;
    font-weight: 900;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Subtitle */
.ctpopup-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 40px 0;
    line-height: 1.4;
}

/* Table Container */
.ctpopup-table {
    max-width: 600px;
    margin: 0 auto;
}

/* Table Header */
.ctpopup-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ctpopup-header-cell {
    background: #000000;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

/* Table Body */
.ctpopup-table-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Table Rows */
.ctpopup-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.ctpopup-table-row-last {
    margin-bottom: 0;
}

/* Table Cells */
.ctpopup-table-cell {
    background: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 22px;
    font-weight: 600;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ctpopup-table-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Superscript styling */
.ctpopup-table-cell sup {
    font-size: 14px;
    font-weight: 400;
    margin-left: 2px;
}

/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
    .ctpopup-content {
        padding: 50px 30px 30px;
    }
    
    .ctpopup-design {
        padding: 40px 30px;
    }
    
    .ctpopup-title {
        font-size: 44px;
    }
    
    .ctpopup-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .ctpopup-header-cell {
        font-size: 16px;
        padding: 15px 15px;
    }
    
    .ctpopup-table-cell {
        font-size: 20px;
        padding: 20px 15px;
    }
    
    .ctpopup-table-header,
    .ctpopup-table-row {
        gap: 12px;
    }
    
    .ctpopup-table-row {
        margin-bottom: 12px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .ctpopup-overlay {
        padding: 15px;
    }
    
    .ctpopup-container {
        border-radius: 20px;
    }
    
    .ctpopup-content {
        padding: 45px 20px 25px;
    }
    
    .ctpopup-design {
        padding: 30px 20px;
    }
    
    .ctpopup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .ctpopup-title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .ctpopup-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .ctpopup-header-cell {
        font-size: 14px;
        padding: 12px 10px;
    }
    
    .ctpopup-table-cell {
        font-size: 17px;
        padding: 16px 10px;
    }
    
    .ctpopup-table-cell sup {
        font-size: 11px;
    }
    
    .ctpopup-table-header,
    .ctpopup-table-row {
        gap: 10px;
    }
    
    .ctpopup-table-row {
        margin-bottom: 10px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .ctpopup-title {
        font-size: 28px;
    }
    
    .ctpopup-subtitle {
        font-size: 12px;
    }
    
    .ctpopup-table-cell {
        font-size: 15px;
        padding: 14px 8px;
    }
}

/* Print styles - hide popup when printing */
@media print {
    .ctpopup-overlay {
        display: none !important;
    }
}
