/* pro_styles.css - Professional Enhancements for Hyderabad SWM Website */

/* Mission Control HUD */
.hud-overlay {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    max-width: 940px;
    margin: 10px auto 12px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(31, 95, 157, 0.18);
    border-radius: 14px;
    color: #223243;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(17, 47, 76, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hud-overlay.minimized {
    max-height: 52px;
    overflow: hidden;
    opacity: 0.9;
}

.hud-overlay.minimized:hover {
    opacity: 1;
}

.hud-overlay.minimized .hud-body {
    display: none;
}

.hud-header {
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.14), rgba(255, 255, 255, 0.8));
    padding: 10px 14px;
    border-bottom: 1px solid rgba(31, 95, 157, 0.14);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.hud-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hud-header h4 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1f3550;
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(46, 204, 113, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.hud-body {
    padding: 10px 14px 12px;
}

.hud-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hud-stat .label {
    font-size: 0.75rem;
    color: #6b7b8a;
}

.hud-stat .value {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d8f58;
}

.hud-progress-wrapper {
    height: 4px;
    background: rgba(31, 95, 157, 0.12);
    border-radius: 2px;
    margin: 10px 0 8px;
    overflow: hidden;
}

.hud-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2ecc71, #3498db);
    transition: width 0.5s ease;
}

.hud-status {
    font-size: 0.72rem;
    color: #6b7b8a;
    text-align: center;
    font-style: italic;
}

/* Zonal Leaderboard Styling */
#zonalLeaderboard tr.top-rank {
    background: rgba(46, 204, 113, 0.1);
}

.efficiency-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    display: inline-block;
}

.grade-a {
    background: #27ae60;
    color: white;
}

.grade-b {
    background: #2ecc71;
    color: white;
}

.grade-c {
    background: #f1c40f;
    color: black;
}

/* Chart Sizing Fixes */
.chart-wrapper canvas {
    max-width: 100% !important;
}

/* HUD Grid */
.hud-grid-2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.hud-stat-mini {
    background: rgba(31, 95, 157, 0.07);
    padding: 7px 8px;
    border-radius: 7px;
    text-align: center;
}

.label-mini {
    display: block;
    font-size: 0.62rem;
    color: #5f7386;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.value-mini {
    font-family: 'Fira Code', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: #20364f;
}

@media (max-width: 900px) {
    .hud-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Sponsor Logos - Hero Section */
.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.sponsor-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.08);
}

.sponsor-logo.iith-logo {
    height: 90px;
}

.sponsor-logo.elan-logo {
    height: 70px;
}

.sponsor-logo.ghmc-logo {
    height: 85px;
}

/* Footer Logos */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-logo.iith-logo {
    height: 70px;
}

.footer-logo.elan-logo {
    height: 50px;
}

.footer-logo.ghmc-logo {
    height: 65px;
}

@media (max-width: 768px) {
    .sponsor-logos {
        gap: 20px;
        flex-wrap: wrap;
    }

    .sponsor-logo {
        height: 40px;
    }

    .footer-logos {
        gap: 25px;
        flex-wrap: wrap;
    }

    .footer-logo {
        height: 35px;
    }
}

/* Key Findings Cards */
.key-findings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0 30px;
    max-width: 900px;
}

.finding-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.finding-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2ecc71;
    line-height: 1.1;
}

.finding-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.finding-detail {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .key-findings {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .finding-value {
        font-size: 1.5rem;
    }
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, #2ecc71 0%, #1a9c5a 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    filter: brightness(1.1);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-outline-premium {
    background: transparent;
    border: 2px solid #2ecc71;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-premium:hover {
    background: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

/* Section Spacing */
section {
    padding: 100px 0 !important;
    scroll-margin-top: 80px;
}

.content-block {
    margin-bottom: 60px !important;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Footer Section */
.site-footer {
    background: #111;
    padding: 60px 0 30px;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-copy {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Subtle Anim */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Road Tier Table */
.road-tier-table tr.tier-arterial {
    background: rgba(46, 204, 113, 0.08);
}

.road-tier-table tr.tier-residential {
    background: rgba(241, 196, 15, 0.08);
}

.road-tier-table tr.tier-narrow {
    background: rgba(231, 76, 60, 0.08);
}

.road-tier-table td {
    border-color: rgba(0, 0, 0, 0.03) !important;
}

.road-tier-table code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.gantt-section {
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gantt-container {
    width: 100%;
    height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 20px;
}

.gantt-container img {
    width: 100%;
    display: block;
}

.gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gantt-controls {
    display: flex;
    gap: 15px;
}

.btn-gantt {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid #3498db;
    color: #3498db;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-gantt:hover {
    background: #3498db;
    color: #fff;
}

.gantt-container::-webkit-scrollbar {
    width: 10px;
}

.gantt-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gantt-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.gantt-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Section 5 (Conclusion) spacing and card height fixes */
#recommendations .grid-2 {
    align-items: start;
    gap: 2rem;
    margin-bottom: 2rem;
}

#recommendations .grid-2 > .card {
    align-self: start;
    height: auto;
}

#recommendations > .container > .card {
    margin-top: 2rem;
}