/* ============================================
   Popups & Widgets Styling
   ============================================ */

html {
    background-color: #0F102E !important;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0F102E !important;
    margin: 0;
    padding: 0;
    background-attachment: scroll !important;
}

* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ---- News/Event Popup ---- */
#popup-closed {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#popup-closed > div {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#popup-closed img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

#popup-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#popup-close-x:hover {
    background: rgba(0, 0, 0, 0.8);
}

#popup-closed a {
    margin-top: auto;
    margin-bottom: 24px;
    padding: 12px 32px;
    background: linear-gradient(to bottom, #494AD8, #6A6BD8);
    color: #fff;
    border-radius: 32px;
    font-family: 'Alata', serif;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 1px 6px #fff;
    display: inline-block;
    transition: all 0.2s ease;
}

#popup-closed a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #fff;
}

/* ---- Feedback Widget ---- */
#feedback-overlay {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 8888;
}

#feedback-overlay > div {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    border: 2px solid #ff6b35;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#feedback-overlay-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    color: #fff;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    z-index: 10001;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}

#feedback-overlay-close:hover {
    color: #ff6b35;
}

#feedback-overlay .feedback-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8555 100%);
    padding: 24px 20px;
    text-align: center;
}

#feedback-overlay h3 {
    color: #fff;
    font-family: 'Alata', serif;
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: bold;
}

#feedback-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    margin: 0;
}

#feedback-overlay .feedback-body {
    padding: 16px;
    background: #1a1a1a;
    text-align: center;
}

#feedback-overlay a {
    display: block;
    padding: 12px 16px;
    background: #ff6b35;
    color: #fff;
    border-radius: 8px;
    font-family: 'Alata', serif;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    margin-bottom: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
}

#feedback-overlay a:hover {
    background: #ff7a47;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

#feedback-overlay-later {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    color: #ddd;
    border: 1px solid #555;
    border-radius: 8px;
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#feedback-overlay-later:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
}

/* Responsive */
@media (max-width: 480px) {
    #feedback-overlay {
        bottom: 20px;
        right: 20px;
    }

    #feedback-overlay > div {
        max-width: calc(100vw - 40px);
    }

    #popup-closed img {
        max-width: 100vw;
        max-height: 100vh;
    }
}
