/* ==========================================================================
   CloudMonsters - Firewall Check Page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */

:root {
    --cpx-background-color: #1E1733;
    --cpx-text-color: #FFFFFF;
    --cpx-button-color: #6158A3;
    --cpx-button-text-color: #FFFFFF;
    --cpx-button-border-radius: 7px;
    --cpx-font-family: 'Poppins', sans-serif;
    --cpx-status-blocked-color: #e74c3c;
    --cpx-status-delisting-color: #f39c12;
    --cpx-status-clear-color: #2ecc71;
    --cpx-message-success-color: #2ecc71;
    --cpx-message-error-color: #e74c3c;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--cpx-background-color);
    color: var(--cpx-text-color);
    font-family: var(--cpx-font-family);
    font-weight: 400;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Aurora Background
   -------------------------------------------------------------------------- */

.firewall__aurora {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.firewall__aurora-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.firewall__waves {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: auto;
    opacity: .5;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.firewall {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.firewall__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.firewall__logo {
    width: 480px;
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.firewall__title {
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.firewall__ip {
    margin-bottom: 24px;
    font-size: 1rem;
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Icon
   -------------------------------------------------------------------------- */

.firewall__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Status
   -------------------------------------------------------------------------- */

.firewall__status {
    margin-bottom: 24px;
    padding: 16px 24px;
    border-radius: var(--cpx-button-border-radius);
    font-size: 0.95rem;
    line-height: 1.6;
}

.firewall__status p + p {
    margin-top: 8px;
}

.firewall__status--blocked {
    border: 1px solid var(--cpx-status-blocked-color);
    background-color: rgba(231, 76, 60, 0.15);
}

.firewall__status--delisting {
    border: 1px solid var(--cpx-status-delisting-color);
    background-color: rgba(243, 156, 18, 0.15);
}

.firewall__status--clear {
    border: 1px solid var(--cpx-status-clear-color);
    background-color: rgba(46, 204, 113, 0.15);
}

.firewall__reason {
    margin-top: 12px;
    color: var(--cpx-status-blocked-color);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Message (delist feedback)
   -------------------------------------------------------------------------- */

.firewall__message {
    margin-top: 16px;
    padding: 12px 20px;
    border-radius: var(--cpx-button-border-radius);
    font-size: 0.9rem;
}

.firewall__message--success {
    border: 1px solid var(--cpx-message-success-color);
    background-color: rgba(46, 204, 113, 0.15);
}

.firewall__message--error {
    border: 1px solid var(--cpx-message-error-color);
    background-color: rgba(231, 76, 60, 0.15);
}

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */

.firewall__button {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--cpx-button-border-radius);
    background-color: var(--cpx-button-color);
    color: var(--cpx-button-text-color);
    font-family: var(--cpx-font-family);
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.firewall__button:hover {
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .firewall__logo {
        width: 200px;
        margin-bottom: 30px;
    }

    .firewall__title {
        font-size: 1.5rem;
    }

    .firewall__status {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}
