/* =========================================================
   UDUAK-ABASI 2027
   CAMPAIGN DESIGN SYSTEM
========================================================= */

:root {
    --campaign-navy: #0f172a;
    --campaign-blue: #1d4ed8;
    --campaign-blue-dark: #1e3a8a;
    --campaign-gold: #f59e0b;
    --campaign-gold-dark: #d97706;
    --campaign-white: #ffffff;
    --campaign-slate: #64748b;
    --campaign-light: #f8fafc;
}


/* =========================================================
   GLOBAL
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--campaign-white);
    color: var(--campaign-navy);

    overflow-x: hidden;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: var(--campaign-blue);
    color: white;
}


/* =========================================================
   CONTAINER
========================================================= */

.container-campaign {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-campaign {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-campaign {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}


/* =========================================================
   SECTION
========================================================= */

.campaign-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .campaign-section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}


/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    font-size: 0.75rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.15em;

    color: var(--campaign-blue);
}

.section-label::before {
    content: "";
    display: block;

    width: 2rem;
    height: 2px;

    background: var(--campaign-gold);
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    margin-top: 0.75rem;

    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;

    letter-spacing: -0.025em;

    color: var(--campaign-navy);
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}


/* =========================================================
   SECTION DESCRIPTION
========================================================= */

.section-description {
    margin-top: 1rem;

    max-width: 42rem;

    font-size: 1rem;
    line-height: 1.75;

    color: var(--campaign-slate);
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.875rem 1.5rem;

    border-radius: 0.5rem;

    background: var(--campaign-blue);
    color: white;

    font-size: 0.875rem;
    font-weight: 700;

    transition:
        background-color 200ms ease,
        transform 200ms ease,
        box-shadow 200ms ease;
}

.btn-primary:hover {
    background: var(--campaign-blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(30, 64, 175, 0.2);
}


/* =========================================================
   GOLD BUTTON
========================================================= */

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.875rem 1.5rem;

    border-radius: 0.5rem;

    background: var(--campaign-gold);
    color: var(--campaign-navy);

    font-size: 0.875rem;
    font-weight: 700;

    transition:
        background-color 200ms ease,
        transform 200ms ease,
        box-shadow 200ms ease;
}

.btn-gold:hover {
    background: var(--campaign-gold-dark);

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(245, 158, 11, 0.25);
}


/* =========================================================
   OUTLINE BUTTON
========================================================= */

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.875rem 1.5rem;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;

    background: transparent;
    color: white;

    font-size: 0.875rem;
    font-weight: 700;

    transition:
        background-color 200ms ease,
        border-color 200ms ease,
        transform 200ms ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);

    border-color: white;

    transform: translateY(-2px);
}


/* =========================================================
   CAMPAIGN CARD
========================================================= */

.campaign-card {
    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 1rem;

    padding: 1.5rem;

    transition:
        transform 250ms ease,
        box-shadow 250ms ease,
        border-color 250ms ease;
}

.campaign-card:hover {
    transform: translateY(-5px);

    border-color: rgba(29, 78, 216, 0.2);

    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   AGENDA ICON
========================================================= */

.agenda-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 3.5rem;
    height: 3.5rem;

    border-radius: 0.75rem;

    background: rgba(29, 78, 216, 0.08);

    color: var(--campaign-blue);
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.96) 0%,
            rgba(15, 23, 42, 0.82) 45%,
            rgba(15, 23, 42, 0.35) 100%
        );
}


/* =========================================================
   IMAGE
========================================================= */

.campaign-image {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 500ms ease;
}

.image-container:hover .campaign-image {
    transform: scale(1.04);
}


/* =========================================================
   NEWS CARD
========================================================= */

.news-card {
    overflow: hidden;

    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 1rem;

    transition:
        transform 250ms ease,
        box-shadow 250ms ease;
}

.news-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-link {
    position: relative;

    color: #475569;

    font-size: 0.875rem;
    font-weight: 600;

    transition: color 200ms ease;
}

.nav-link:hover {
    color: var(--campaign-blue);
}

.nav-link.active {
    color: var(--campaign-blue);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -0.5rem;

    height: 2px;

    background: var(--campaign-gold);

    border-radius: 999px;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu {
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}
.mobile-nav-link {
    @apply flex items-center justify-between rounded-xl px-4 py-3 text-sm font-semibold text-slate-700 transition duration-200 hover:bg-slate-50 hover:text-campaign-blue;
}

.mobile-nav-active {
    @apply bg-campaign-navy text-campaign-gold;
}


/* =========================================================
   STAT
========================================================= */

.campaign-stat {
    text-align: center;
}

.campaign-stat-number {
    font-size: 2rem;
    line-height: 1;

    font-weight: 800;

    color: var(--campaign-blue);
}

.campaign-stat-label {
    margin-top: 0.5rem;

    font-size: 0.75rem;

    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: var(--campaign-slate);
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: 0.75rem;

    background: #e2e8f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 500ms ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}


/* =========================================================
   CTA SECTION
========================================================= */

.campaign-cta {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--campaign-navy),
            var(--campaign-blue-dark)
        );
}

.campaign-cta::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -180px;
    right: -100px;

    border-radius: 999px;

    background: rgba(245, 158, 11, 0.12);
}


/* =========================================================
   FADE ANIMATION
========================================================= */

.fade-up {
    animation: fadeUp 700ms ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.6);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   SUPPORTER FORM
========================================================= */

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}

.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.form-label + input,
.form-label + select,
.form-label + textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-label + input:focus,
.form-label + select:focus,
.form-label + textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

@layer components {

    .form-label {
        @apply mb-2 block text-sm font-semibold text-slate-700;
    }

    .form-input {
        @apply w-full rounded-xl border border-slate-300
               bg-white px-4 py-3 text-sm text-slate-900
               outline-none transition
               placeholder:text-slate-400
               focus:border-campaign-blue
               focus:ring-2
               focus:ring-campaign-blue/20;
    }

}

/* =========================================================
   DASHBOARD TABLE
========================================================= */

.table-heading {
    padding: 0.875rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
}

.table-cell {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

/* =========================================================
   SUPPORTER DETAILS
========================================================= */

.detail-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.detail-value {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

/* =========================================================
   CAMPAIGN DASHBOARD
========================================================= */



.dashboard-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(2px);
}

.dashboard-nav-link.active {
    background-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.25);
}

.dashboard-nav-link.active:hover {
    background-color: #1e40af;
    color: #ffffff;
}


/* =========================================================
   DASHBOARD SCROLLBAR
========================================================= */

#dashboard-sidebar::-webkit-scrollbar {
    width: 5px;
}

#dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#dashboard-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
}


/* =========================================================
   DASHBOARD TABLE
========================================================= */

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th {
    padding: 0.875rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    white-space: nowrap;
}

.dashboard-table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}


/* =========================================================
   DASHBOARD CARD
========================================================= */

.dashboard-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   DASHBOARD STAT
========================================================= */

.dashboard-stat-icon {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.875rem;
}


/* =========================================================
   DASHBOARD MOBILE
========================================================= */

@media (max-width: 639px) {

    .dashboard-nav-link {
        padding: 0.875rem;
    }

}
/* =========================================================
   CAMPAIGN DASHBOARD SIDEBAR
========================================================= */

.dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    width: 100%;

    min-height: 42px;

    padding: 0.625rem 0.75rem;

    margin-bottom: 0.25rem;

    border-radius: 0.75rem;

    color: #94a3b8;

    font-size: 0.8125rem;

    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.dashboard-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.06);

    color: #ffffff;

    transform: translateX(2px);
}


.dashboard-nav-link.active {
    background-color: #1d4ed8;

    color: #ffffff;

    box-shadow:
        0 6px 16px rgba(29, 78, 216, 0.22);
}


.dashboard-nav-link.active:hover {
    background-color: #1e40af;

    color: #ffffff;
}


/* =========================================================
   SIDEBAR ICON
========================================================= */

.dashboard-nav-icon {
    display: flex;

    width: 1.5rem;
    height: 1.5rem;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    color: currentColor;

    font-size: 0.875rem;
}


.dashboard-nav-text {
    flex: 1;

    line-height: 1.2;
}


/* =========================================================
   SIDEBAR SCROLLBAR
========================================================= */

#dashboard-sidebar nav::-webkit-scrollbar {
    width: 4px;
}


#dashboard-sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}


#dashboard-sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);

    border-radius: 999px;
}


/* =========================================================
   DASHBOARD MOBILE
========================================================= */

@media (max-width: 1023px) {

    #dashboard-sidebar {
        width: 18rem;
    }

}

/* =========================================================
   DASHBOARD FORM CONTROLS
========================================================= */

.form-control {
    display: block;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    background-color: #ffffff;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #0f172a;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:hover {
    border-color: #94a3b8;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    color: #334155;
}

.form-help {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    line-height: 1.5;
    color: #94a3b8;
}

.form-error {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #dc2626;
}

.form-checkbox {
    margin-top: 0.15rem;
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #1d4ed8;
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

.mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0.75rem 1rem;

    color: #334155;
    background: #ffffff;

    font-size: 0.95rem;
    font-weight: 600;

    border-bottom: 1px solid #e2e8f0;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f8fafc;
    color: #2563eb;
    padding-left: 1.25rem;
}

.mobile-nav-active {
    background-color: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
}

.mobile-nav-active:hover {
    background-color: #dbeafe;
    color: #1d4ed8;
}