/* ==========================================================================
   COLOR PALETTE (shared with the main certification site)
   ========================================================================== */

:root {
    --primary: #24b47e;
    --primary-light: #3ecf8e;
    --accent: #6ee7b7;
    --bg-dark: #09090b; /* Zinc 950 - almost pure black */
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-white: #ffffff;
    --text-grey: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   BASE / RESET
   ========================================================================== */

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

html {
    height: 100%;
}

body {
    min-height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: var(--bg-dark);
}

/* ==========================================================================
   VERIFIER PAGE SHELL
   ========================================================================== */

.verifier-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    min-height: 100svh;
    font-family: 'Segoe UI', sans-serif;
    background: url('./assets/try7.png') no-repeat center center;
    background-size: calc(100% - 48px) calc(100% - 48px); /* 24px margin on each side */
}

/* Site-matching accents on the standalone verifier page */
.verifier-main .text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verifier-main .badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.verifier-main .badge-pill span {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-light);
}

/* ==========================================================================
   VERIFY FORM CARD (index.php)
   ========================================================================== */

.verifier-main .container {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(36, 180, 126, 0.15);
}

.verifier-main h1 {
    color: var(--text-white);
    margin-bottom: 15px;
    font-size: 1.7rem;
    line-height: 1.3;
}

.verifier-main h1::selection {
    background: var(--primary);
}

.verifier-main p {
    color: var(--text-grey);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.verifier-main input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    outline: none;
    color: var(--text-white);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.verifier-main input::placeholder {
    color: var(--text-grey);
}

.verifier-main input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.verifier-main button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.verifier-main button:hover {
    background: var(--primary-light);
}

.verifier-main button:active {
    transform: scale(0.98);
}

.verifier-main .container a,
.verifier-main .result-card a {
    display: inline-block;
    text-decoration: none;
    background: var(--primary);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.verifier-main .container a:hover,
.verifier-main .result-card a:hover {
    background: var(--primary-light);
}

/* ==========================================================================
   VERIFICATION RESULT CARD (verify.php)
   ========================================================================== */

.verifier-main .result-card {
    width: 100%;
    max-width: 700px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(36, 180, 126, 0.15);
}

.verifier-main .result-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.verifier-main .success h2 {
    color: var(--accent);
}

.verifier-main .error h2 {
    color: #ff5252;
}

.verifier-main .error p {
    color: var(--text-grey);
}

.verifier-main table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.verifier-main table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-grey);
    word-break: break-word;
}

.verifier-main table tr td:first-child {
    color: var(--text-white);
    font-weight: 600;
    width: 40%;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets and small laptops */
@media (max-width: 900px) {
    .verifier-main .result-card {
        padding: 32px;
    }

    .verifier-main table td {
        padding: 10px;
    }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
    body {
        background: url('./assets/cert-m.png');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
    }

    .verifier-main .container {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .verifier-main h1 {
        font-size: 1.5rem;
    }

    .verifier-main .result-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .verifier-main .result-card h2 {
        font-size: 1.3rem;
    }

    .verifier-main table td {
        display: block;
        padding: 8px 0;
        border-bottom: none;
    }

    .verifier-main table tr {
        display: block;
        border-bottom: 1px solid var(--border-color);
        padding: 8px 0;
    }

    .verifier-main table tr td:first-child {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: var(--primary-light);
        width: 100%;
        padding-bottom: 2px;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .verifier-main {
        padding: 16px;
    }

    .verifier-main .container {
        padding: 28px 20px;
    }

    .verifier-main h1 {
        font-size: 1.3rem;
    }

    .verifier-main p {
        font-size: 0.88rem;
    }

    .verifier-main input,
    .verifier-main button {
        padding: 13px;
        font-size: 15px;
    }

    .verifier-main .result-card {
        padding: 22px 16px;
    }

    .verifier-main .result-card h2 {
        font-size: 1.15rem;
    }
}

/* Large desktop */
@media (min-width: 1400px) {
    .verifier-main .container {
        max-width: 500px;
    }

    .verifier-main .result-card {
        max-width: 800px;
    }
}
