/* ============================================
   MOVIEBAAZ NOTICE POPUP - FULL CSS
   Responsive for all devices - FIXED MOBILE VIEW
============================================= */

/* Base Modal Styling */
.custom-modal {
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(77, 75, 75, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Content Container */
.custom-modal-content {
    position: relative;
    background: linear-gradient(to right, #02182f, #3b073b, #02182f);
    border: 2px solid #f21f1f;
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Active Modal State */
.show-custom-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

/* Header Section */
.notice-header {
    background: linear-gradient(135deg, #0087fc, #ff2b99, #0087fc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 500;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    padding: 15px;
    margin: -24px -15px 15px -15px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

/* FontAwesome Icons in Header */
.notice-header i {
    margin: 0 15px;
    font-size: 28px;
}

/* Close Button */
.top-notice-close {
    text-align: right;
    position: relative;
    margin-bottom: 10px;
}

.top-notice-close span {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -15px;
    right: -10px;
    cursor: pointer;
    height: 35px;
    width: 35px;
    border: 2px solid #1b1b1b;
    color: #d50505;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(62deg, rgba(255, 105, 0, 1), #cbfc01);
    z-index: 10;
}

/* Content Text */
.top-notice-text {
    text-align: center;
    margin-bottom: 25px;
    max-height: 65vh;
    overflow: auto;
    padding: 10px;
    font-size: 18px;
    line-height: 1.8;
    color: #e0e0e0;
}

.top-notice-text a {
    color: #f21f1f;
    font-weight: 600;
    text-decoration: none;
}

/* Button Container */
.top-notice-button-container {
    margin: 25px 0;
}

/* Button Row - FIXED FOR ALL DEVICES */
.button-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

/* Button Styling */
.button-62, 
.button-63 {
    border: 0;
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    flex: 1;
    min-width: 140px;
}

/* Telegram Button */
.button-62 {
    background: linear-gradient(to bottom right, #0088cc, #34b8fa);
}

/* Facebook Button */
.button-63 {
    background: linear-gradient(to bottom right, #3b5998, #0f59f5);
}

/* Button Hover Effects */
.button-62:hover, 
.button-63:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.button-62:active, 
.button-63:active {
    transform: translateY(1px);
}

/* Thank You Button */
.top-notice-button {
    text-align: center;
    margin-top: 15px;
}

.top-notice-button span {
    display: inline-flex;
    border: 2px solid #f00;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 20px;
    color: #000;
    background: linear-gradient(to right, #00d0ff, #cbfc01);
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-notice-button span:hover {
    transform: scale(1.05);
}

/* ============================================
   MOBILE RESPONSIVE FIXES - BUTTONS SIDE BY SIDE
============================================= */

@media (max-width: 768px) {
    /* Modal Container */
    .custom-modal-content {
        width: 95%;
        padding: 1rem;
        max-width: none;
    }
    
    /* Header */
    .notice-header {
        font-size: 18px;
        padding: 12px;
    }
    
    .notice-header i {
        font-size: 22px;
        margin: 0 8px;
    }
    
    /* Content */
    .top-notice-text {
        font-size: 16px;
        padding: 0px;
    }
    
    /* BUTTONS - SIDE-BY-SIDE ON MOBILE */
    .button-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .button-62,
    .button-63 {
        flex: 1;
        padding: 10px 5px;
        font-size: 14px;
        min-width: auto;
    }
    
    /* Button icons */
    .button-62 i,
    .button-63 i {
        margin-right: 5px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .button-row {
        flex-direction: row;
    }
    
    .button-62,
    .button-63 {
        padding: 8px 3px;
        font-size: 13px;
    }
    
    .top-notice-button span {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    /* Adjust icon size */
    .notice-header i {
        font-size: 18px;
        margin: 0 5px;
    }
}

/* Tall mobile devices */
@media (max-height: 600px) {
    .custom-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .top-notice-text {
        max-height: 45vh;
    }
}

/* Button centering */
.button-62, 
.button-63 {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Animation for modal entry */
@keyframes modalEntry {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.show-custom-modal .custom-modal-content {
    animation: modalEntry 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}