/* ============================================
   STYLE WEBSITE MEDIA SMKN 7 SAMARINDA
   VERSI FINAL - FULL
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fb;
    color: #1a1a2e;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }

/* ---------- NAVBAR ---------- */
.navbar-custom {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e) !important;
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-bottom: 3px solid #f7971e;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff !important;
}

.navbar-custom .navbar-brand i { color: #f7971e; margin-right: 8px; }

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar-custom .nav-link.active {
    color: #fff !important;
    background: rgba(247,151,30,0.25);
}

/* ---------- HERO ---------- */
.hero-section {
    background: linear-gradient(135deg, #1a1a5e 0%, #2d2b7a 50%, #4a3f8a 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}

.hero-section .container { position: relative; z-index: 2; }

.hero-section h1 {
    font-weight: 800;
    font-size: 3rem;
    letter-spacing: -1px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-section h1 span {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    color: #ffffff;
    text-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.hero-icon {
    font-size: 7rem;
    opacity: 0.1;
    position: absolute;
    right: 50px;
    bottom: 20px;
}

/* ---------- BUTTON ---------- */
.btn-hero {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    border: none;
    color: #1a1a2e;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(247,151,30,0.4);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(247,151,30,0.5);
    color: #1a1a2e;
}

.btn-outline-hero {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-hero:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* ---------- CARD ---------- */
.card-modern {
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.card-modern .card-img-top { height: 200px; object-fit: cover; }
.card-modern .card-body { padding: 20px; }

/* ---------- BADGE ---------- */
.badge-category {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
}
.badge-akademik { background: linear-gradient(135deg, #667eea, #764ba2); }
.badge-kesiswaan { background: linear-gradient(135deg, #f093fb, #f5576c); }
.badge-jurusan { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #1a1a2e; }
.badge-prestasi { background: linear-gradient(135deg, #f7971e, #ffd200); color: #1a1a2e; }
.badge-pengumuman { background: linear-gradient(135deg, #fa709a, #fee140); color: #1a1a2e; }
.badge-event { background: linear-gradient(135deg, #a18cd1, #fbc2eb); color: #1a1a2e; }
.badge-artikel { background: linear-gradient(135deg, #fbc2eb, #a6c1ee); color: #1a1a2e; }

/* ---------- SECTION ---------- */
.section-header {
    position: relative;
    margin-bottom: 30px;
}

.section-header h3 {
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h3 i { color: #f7971e; }

.section-header::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    border-radius: 4px;
}

/* ---------- PENGUMUMAN ---------- */
.pengumuman-card {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left: 5px solid #f7971e;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.pengumuman-card:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(247,151,30,0.2);
}

.badge-urgent {
    background: #f44336;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 10px;
    border-radius: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.6;} }

/* ---------- SIDEBAR ---------- */
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.sidebar-card .card-header {
    background: linear-gradient(135deg, #0f0c29, #302b63);
    color: #fff;
    font-weight: 600;
    padding: 14px 20px;
    border: none;
}

.sidebar-card .card-header i { margin-right: 8px; color: #f7971e; }
.sidebar-card .card-body { padding: 16px 20px; }

/* PERBAIKAN SIDEBAR - TEKS TERBACA */
.sidebar-card .card-body,
.sidebar-card .card-body p,
.sidebar-card .card-body small,
.sidebar-card .card-body li,
.sidebar-card .card-body span {
    color: #1a1a2e !important;
}

.sidebar-card .card-body a {
    color: #0d6efd !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-card .card-body a:hover {
    color: #f7971e !important;
    padding-left: 5px;
}

.sidebar-card .card-body hr {
    border-color: #dee2e6;
    opacity: 1;
}

.sidebar-card .card-body .text-muted {
    color: #6c757d !important;
}

/* Tombol Sosial Media di Sidebar */
.sidebar-card .card-body .btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
}
.sidebar-card .card-body .btn-outline-primary:hover {
    background: #0d6efd !important;
    color: #fff !important;
}

.sidebar-card .card-body .btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}
.sidebar-card .card-body .btn-outline-danger:hover {
    background: #dc3545 !important;
    color: #fff !important;
}

.sidebar-card .card-body .btn-outline-dark {
    color: #212529 !important;
    border-color: #212529 !important;
}
.sidebar-card .card-body .btn-outline-dark:hover {
    background: #212529 !important;
    color: #fff !important;
}

.sidebar-card .card-body ul li {
    margin-bottom: 6px;
}

/* ---------- FOOTER ---------- */
.footer-custom {
    background: linear-gradient(135deg, #0f0c29, #1a1a4e, #302b63);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 4px solid #f7971e;
}

.footer-custom h5 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.footer-custom h5 i {
    color: #f7971e;
    margin-right: 8px;
}

.footer-custom p,
.footer-custom li,
.footer-custom small,
.footer-custom .small {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-custom .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-custom .social-links a {
    display: inline-block;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 46px;
    color: #fff;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-size: 1.1rem;
}

.footer-custom .social-links a:hover {
    background: #f7971e;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(247, 151, 30, 0.3);
}

.footer-custom .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-custom .footer-bottom p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.footer-custom .footer-bottom a {
    color: #f7971e !important;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-custom .footer-bottom a:hover {
    color: #ffd200 !important;
    text-decoration: underline;
}

.footer-custom ul li a {
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.3s ease;
}

.footer-custom ul li a:hover {
    color: #f7971e !important;
    padding-left: 5px;
}

.hover-link { transition: all 0.3s ease; }
.hover-link:hover { color: #f7971e !important; padding-left: 5px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero-section { padding: 50px 0 40px; text-align: center; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1rem; margin: 0 auto; }
    .section-header h3 { font-size: 1.4rem; }
    .card-modern .card-img-top { height: 180px; }
}
@media (max-width: 576px) {
    .navbar-custom .navbar-brand { font-size: 1.1rem; }
    .hero-section h1 { font-size: 1.6rem; }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: linear-gradient(135deg, #302b63, #0f0c29); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #f7971e; }

/* ============================================
   REAKSI EMOJI BUTTONS
   ============================================ */
.reaksi-btn {
    font-size: 1.2rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.2s ease;
    min-width: 55px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #1a1a2e;
}

.reaksi-btn:hover {
    transform: scale(1.05);
    background: #f0f2f5;
    border-color: #ccc;
}

.reaksi-btn .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f0f2f5 !important;
    color: #1a1a2e !important;
}

.reaksi-btn.active {
    font-weight: bold;
    border-color: #f7971e;
}

.reaksi-btn.active .badge {
    background: rgba(255,255,255,0.85) !important;
    color: #1a1a2e !important;
}

.total-reaksi {
    font-size: 0.9rem;
    color: #666;
}