/* assets/css/public.css - Public Landing Page Redesign Styling */

:root {
    --bg-dark: #0f172a;       /* Slate 900 */
    --bg-dark-light: #1e293b; /* Slate 800 */
    --brand-gold: #fbbf24;    /* Amber 400 */
    --brand-gold-hover: #f59e0b; /* Amber 500 */
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(226, 232, 240, 0.8);
    --glass-blur: 16px;
    --shadow-premium: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 5px 15px -5px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

/* Global resets & typography */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155; /* Slate 700 */
    background-color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Mobile responsive typography variables */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #0f172a;
}

/* Responsive Headings */
h1.responsive-h1 {
    font-size: 2.25rem; /* 36px */
}
@media (min-width: 768px) {
    h1.responsive-h1 {
        font-size: 3rem; /* 48px */
    }
}
@media (min-width: 1024px) {
    h1.responsive-h1 {
        font-size: 3.5rem; /* 56px */
    }
}

h2.responsive-h2 {
    font-size: 1.75rem; /* 28px */
}
@media (min-width: 768px) {
    h2.responsive-h2 {
        font-size: 2.25rem; /* 36px */
    }
}

p.responsive-lead {
    font-size: 0.95rem;
}
@media (min-width: 768px) {
    p.responsive-lead {
        font-size: 1.125rem; /* 18px */
    }
}

/* Header Navbar Styles */
.navbar-custom {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    color: var(--brand-gold) !important;
    letter-spacing: -0.5px;
}

.navbar-custom .nav-link {
    font-weight: 500;
    color: #e2e8f0 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--brand-gold) !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Drawer (Slide-out menu) */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-dark);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Modern responsive cards */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border-top: 4px solid var(--brand-gold);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--bg-dark);
    line-height: 1.1;
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.facility-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(251, 191, 36, 0.3);
}

.facility-card i {
    font-size: 2.5rem;
    color: var(--brand-gold);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.facility-card:hover i {
    transform: scale(1.1);
}

.facility-card h5 {
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 10px;
}

.facility-card p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Governing Committee */
.committee-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.committee-card .avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2.5rem;
    color: #64748b;
    border: 3px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.committee-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.committee-card .position {
    font-size: 0.75rem;
    color: var(--brand-gold-hover);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.committee-card .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-dark);
}

/* Election results card */
.election-result-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.election-result-card::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.election-result-card .winner {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-gold);
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Notice & Event Items styling */
.notice-item, .event-item {
    background: #ffffff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 16px;
    border-left: 5px solid var(--brand-gold);
    transition: all 0.2s ease;
}

.notice-item:hover, .event-item:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.notice-item .title, .event-item .title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 6px;
}

.notice-item .meta, .event-item .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Touch-friendly buttons */
.btn-touch-primary, .btn-touch-gold, .btn-touch-outline {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    padding: 12px 28px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-touch-gold {
    background-color: var(--brand-gold);
    color: var(--bg-dark);
    border: none;
}

.btn-touch-gold:hover {
    background-color: var(--brand-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25);
    color: var(--bg-dark);
}

.btn-touch-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    background-color: transparent;
}

.btn-touch-outline:hover {
    border-color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.btn-touch-gold-sm {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1.5px solid var(--brand-gold);
    color: var(--brand-gold);
    background: transparent;
}

.btn-touch-gold-sm:hover {
    background-color: var(--brand-gold);
    color: var(--bg-dark);
}

/* Section Title */
.section-title {
    margin-bottom: 50px;
    text-align: center;
}

.section-title h2 {
    font-weight: 800;
    color: var(--bg-dark);
}

.section-title .gold-line {
    width: 60px;
    height: 4px;
    background: var(--brand-gold);
    margin: 12px auto 0;
    border-radius: 10px;
}

/* Footer Section */
.footer {
    background: var(--bg-dark);
    color: #94a3b8; /* Slate 400 */
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .footer-logo {
    font-size: 1.75rem;
    color: var(--brand-gold);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer h5 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--brand-gold);
}

/* Helper styles */
.img-fluid-responsive {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.table-responsive-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: #ffffff;
    box-shadow: var(--shadow-premium);
}

/* Tailwind - Bootstrap Collapse Collision Override Fix */
.navbar-collapse.collapse {
    visibility: visible !important;
}
