/* 
   Civic Issue Reporting Portal Stylesheet
   Matches exact layout, colors, font hierarchy, counters, and modal from reference design.
*/

:root {
    --brand-red: #7A0C0C;
    --brand-red-dark: #560707;
    --brand-yellow: #FFC107;
    --brand-yellow-bg: #FEF9E7;
    --bg-cream: #FDFBF7;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #78716C;
    --border-light: #E7E5E4;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header & Top Bar */
.top-header {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-red);
}

.logo-container i {
    font-size: 1.8rem;
    color: var(--brand-yellow);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F5F5F4;
    color: var(--brand-red);
    padding: 0.6rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.admin-link:hover {
    background: var(--brand-red);
    color: #FFFFFF;
    border-color: var(--brand-red);
}

/* Main Section */
.hero-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Pill Tag */
.badge-pill {
    display: inline-block;
    background-color: var(--brand-yellow-bg);
    border: 1px solid #FDE68A;
    color: var(--brand-red);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.12);
}

/* Main Title with Yellow Accent Line */
.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--brand-red);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.underline-accent {
    position: relative;
    display: inline-block;
}

.underline-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 8px;
    background-color: var(--brand-yellow);
    border-radius: 4px;
}

/* Description Text */
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 720px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Action Trigger Button */
.cta-btn-wrapper {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-report {
    background-color: var(--brand-red);
    color: #FFFFFF;
    border: none;
    padding: 1.1rem 2.25rem;
    border-radius: 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(122, 12, 12, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-report:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(122, 12, 12, 0.35);
}

.btn-track {
    background-color: #FFFFFF;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 1.05rem 2rem;
    border-radius: 40px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-track:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background-color: #FFFDF9;
}

/* Stats Counter Container Box */
.stats-container {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
}

.stat-box {
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--border-light);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--brand-red);
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
}

/* Track Issue Section */
.track-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: var(--card-shadow);
    display: none;
}

.track-form {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.track-input {
    flex: 1;
    padding: 15px 10px;
    /*padding: 0.9rem 1.25rem;*/
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    width: 70%;
}

.track-input:focus {
    border-color: var(--brand-red);
}

/* Track Results Timeline */
.track-results {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.issue-result-item {
    background: #FDFBF7;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.status-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Modal Popup Dialog */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(5px);
}

.modal-dialog {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #F5F5F4;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #E7E5E4;
}

.modal-header-content {
    padding: 2rem 2rem 1.25rem 2rem;
    border-bottom: 1px solid #F5F5F4;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.warning-icon-box {
    width: 54px;
    height: 54px;
    background-color: var(--brand-yellow);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--brand-red);
    flex-shrink: 0;
}

.modal-header-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1.1;
}

.modal-header-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 2px;
}

/* Modal Form Fields */
.modal-body {
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #FAFAFA;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: #FFFFFF;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(122, 12, 12, 0.1);
}

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

/* Image Upload Dropzone Box */
.upload-dropzone {
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    background-color: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--brand-red);
    background-color: #FFFDF9;
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.upload-title {
    font-weight: 700;
    color: var(--brand-red);
    font-size: 0.95rem;
}

.upload-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

#image-file-input {
    display: none;
}

.image-preview-thumb {
    max-height: 140px;
    border-radius: 10px;
    margin-top: 0.75rem;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Form Action Buttons */
.form-actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-submit-form {
    background-color: var(--brand-red);
    color: #FFFFFF;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit-form:hover {
    background-color: var(--brand-red-dark);
}




.main-header {
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0 30px;
    transition: all 0.35s ease;
}

.header-container {
    width: 100%;
    max-width: 1285px;
    height: 68px;
    margin: 0 auto;

    display: flex;
    align-items: center;

    padding: 0 14px 0 32px;

    background: #fff;

    border: 2px solid #a90000;
    border-radius: 12px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

    transition: all 0.35s ease;
}


/* =========================================================
   LOGO + BRAND
========================================================= */

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-circle {
    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #a90000;

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

    overflow: hidden;

    flex-shrink: 0;

    border: 2px solid #fff;
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-symbol {
    color: #fff;
    font-size: 33px;
    font-weight: 900;
}

.brand-title {
    color: #a60000;

    font-size: 24px;
    font-weight: 900;

    letter-spacing: -0.6px;

    line-height: 1;

    white-space: nowrap;
}


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

.desktop-nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 27px;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #a50000;

    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;

    transition: 0.25s ease;
}

.desktop-nav a:hover {
    color: #680000;
}

.dropdown-arrow {
    font-size: 15px;
}


/* =========================================================
   JOIN US
========================================================= */

.join-button {
    height: 42px;

    padding: 0 15px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #a90000;

    color: #fff !important;

    font-size: 16px !important;
    font-weight: 800 !important;

    transition: 0.25s ease;
}

.join-button:hover {
    background: #790000;

    transform: translateY(-1px);
}


/* =========================================================
   TAMIL
========================================================= */

.tamil-button {
    font-size: 17px !important;
    font-weight: 800 !important;

    color: #a50000 !important;
}


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

.mobile-menu-button {
    display: none;

    width: 43px;
    height: 43px;

    margin-left: auto;

    border: 1px solid #ddd;

    border-radius: 8px;

    background: #fff;

    cursor: pointer;

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

    flex-direction: column;

    gap: 5px;
}

.mobile-menu-button span {
    width: 21px;
    height: 2px;

    background: #a50000;

    border-radius: 5px;
}


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

.mobile-nav {
    position: fixed;

    top: 88px;

    left: 15px;
    right: 15px;

    z-index: 9998;

    display: none;

    padding: 14px;

    border: 2px solid #a90000;

    border-radius: 15px;

    background: rgba(255,255,255,0.98);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.15);

    backdrop-filter: blur(15px);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: flex;

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

    padding: 14px 12px;

    border-bottom: 1px solid #eee;

    color: #a50000;

    font-size: 15px;

    font-weight: 700;
}

.mobile-nav a:last-child {
    border-bottom: 0;
}


/* =========================================================
   SCROLLED HEADER
========================================================= */

.main-header.scrolled {
    top: 0;
    padding: 0 15px;
}

.main-header.scrolled .header-container {
    height: 62px;

    border-radius:
        0 0 12px 12px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.13);
}





/* Responsive adjustments */
@media (max-width: 868px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-box:nth-child(2)::after {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

@media (max-width: 520px) {
    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-box::after {
        display: none !important;
    }

    .main-title {
        font-size: 2rem;
    }
}
