/* ==========================================================
 * E-PEMILOS SMAN 7 YOGYAKARTA (WIBHAKTA)
 * Main Stylesheet - Modern Glassmorphism & Wibhakta Theme
 * ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0f2c59;
    --primary-light: #1e4a8a;
    --primary-dark: #0a1931;
    --accent-gold: #f59e0b;
    --accent-gold-light: #fbbf24;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    
    --bg-dark: #090e17;
    --bg-card-dark: rgba(15, 23, 42, 0.75);
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 10px 30px 0 rgba(15, 44, 89, 0.1);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: #f1f5f9;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Navbar */
.navbar-custom {
    background: rgba(15, 44, 89, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
    transition: var(--transition);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-badge {
    background: linear-gradient(135deg, var(--accent-gold), #ea580c);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold-light) !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #091428 0%, #0f2c59 50%, #1e3a8a 100%);
    color: #ffffff;
    position: relative;
    padding: 5rem 0 6rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(15, 44, 89, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(15, 44, 89, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-gold-light);
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.hero-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 620px;
    margin-bottom: 2rem;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px 0 rgba(15, 44, 89, 0.14);
}

.dark-glass-card {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: #ffffff;
    box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.35);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Candidate Card */
.candidate-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.candidate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 44, 89, 0.12);
    border-color: #cbd5e1;
}

.candidate-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 105%;
    overflow: hidden;
    background: #0f2c59;
}

.candidate-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.candidate-card:hover .candidate-img-wrapper img {
    transform: scale(1.04);
}

.candidate-number-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--accent-gold-light);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.candidate-grade-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.candidate-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.candidate-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.candidate-motto {
    font-size: 0.85rem;
    color: #475569;
    font-style: italic;
    margin-bottom: 0.85rem;
    line-height: 1.4;
    min-height: 2.8em;
}

/* Social Buttons (TikTok & Instagram) */
.social-links-group {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

.btn-social {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-tiktok {
    background: #000000;
    color: #ffffff;
    border: 1px solid #222;
}
.btn-tiktok:hover {
    background: #1e1e1e;
    color: #25f4ee;
    transform: translateY(-2px);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    border: none;
}
.btn-instagram:hover {
    opacity: 0.9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 39, 67, 0.35);
}

/* Section Header */
.section-title-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.4rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Timeline / Rules Step Cards */
.step-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: var(--transition);
    height: 100%;
}

.step-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.1);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--accent-gold-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer-main {
    background: #081120;
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--accent-gold-light);
}

/* Modal Styling */
.modal-content-custom {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.modal-header-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--accent-gold);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 3.5rem 0 4.5rem 0;
    }
    .candidate-body {
        padding: 1rem;
    }
}
