/* =========================================================
   DISEASE DETECTION – ORGANIC UNORTHODOX EARTH THEME
   ========================================================= */

.disease-page {
    max-width: 1000px;
    margin: auto;
    position: relative;
}

/* ---------------------------------
   HEADER
---------------------------------- */

.page-header {
    margin-bottom: 34px;
    position: relative;
}

.page-header h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    letter-spacing: 1px;
    display: inline-block;
    padding-bottom: 6px;
}

.page-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65%;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--accent),
        transparent
    );
}

.page-header p {
    color: var(--text-soft);
    max-width: 720px;
    line-height: 1.6;
}

/* ---------------------------------
   ACTION BUTTONS
---------------------------------- */

.action-area {
    display: flex;
    gap: 18px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

.action-area button {
    position: relative;
    padding: 14px 30px;
    font-family: var(--heading-font);
    letter-spacing: 1px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    color: #1e120a;

    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,0.25),
            transparent 50%
        ),
        linear-gradient(
            135deg,
            var(--accent),
            #6f4e37
        );

    box-shadow:
        0 8px 25px rgba(199, 139, 90, 0.4),
        inset 0 -3px 8px rgba(0,0,0,0.35);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                filter 0.25s ease;
}

.action-area button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 14px 35px rgba(199,139,90,0.55),
        inset 0 -3px 10px rgba(0,0,0,0.45);
    filter: brightness(1.05);
}

.action-area button:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
}

.action-area button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------------------------------
   CAMERA SCANNER PORTAL
---------------------------------- */

.camera-box {
    position: relative;
    padding: 22px;
    border-radius: 26px 26px 40px 40px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.06),
            rgba(0,0,0,0.3)
        ),
        var(--card-bg);

    border: 1px solid var(--card-border);

    box-shadow:
        0 22px 55px rgba(0,0,0,0.65),
        inset 0 0 0 1px rgba(255,255,255,0.04);
}

.camera-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            transparent 30%,
            rgba(199,139,90,0.25),
            transparent 70%
        );

    opacity: 0.8;
}

.camera-box video {
    width: 100%;
    border-radius: 20px;
    background: #000;
    box-shadow:
        inset 0 0 25px rgba(0,0,0,0.8);
}

/* Scanner glow */
.camera-box::after {
    content: "";
    position: absolute;
    left: 10%;
    bottom: 12%;
    width: 80%;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(199,139,90,0.45),
        transparent 70%
    );
    animation: scanGlow 3s infinite ease-in-out;
}

@keyframes scanGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* ---------------------------------
   RESULT – DIAGNOSIS REVEAL
---------------------------------- */

.result-box {
    margin-top: 30px;
    padding: 22px 26px;
    border-radius: 18px 30px;
    background:
        linear-gradient(
            135deg,
            rgba(199,139,90,0.2),
            rgba(199,139,90,0.05)
        );

    border: 1px solid var(--card-border);

    box-shadow:
        0 14px 35px rgba(0,0,0,0.55),
        inset 0 0 20px rgba(199,139,90,0.15);

    animation: revealUp 0.6s ease forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-box h3 {
    font-family: var(--heading-font);
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.result-box span {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ---------------------------------
   UTILITY
---------------------------------- */

.hidden {
    display: none;
}
