/* =========================================================
   Virtual Education Point - Main Stylesheet
   ========================================================= */

/* --- Google Font --- */
* { font-family: 'Inter', sans-serif; }
body { background-color: #f8f9fa; color: #212529; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero-section {
    background: linear-gradient(135deg, var(--vep-grad-1, #1a237e) 0%, var(--vep-grad-2, #283593) 40%, var(--vep-grad-3, #1565c0) 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.text-white-75 { color: rgba(255,255,255,0.75) !important; }

/* Floating cards in hero */
.hero-illustration { position: relative; height: 260px; }
.floating-cards { position: absolute; top: 20px; right: 0; left: 0; }
.floating-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 16px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin: 6px;
    animation: float 3s ease-in-out infinite;
}
.card-1 { animation-delay: 0s; }
.card-2 { animation-delay: 1s; }
.card-3 { animation-delay: 2s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* =========================================================
   CATEGORY CARDS
   ========================================================= */
.category-hover {
    transition: all 0.25s ease;
    cursor: pointer;
}
.category-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
    border-color: #0d6efd20 !important;
}
.category-icon { transition: transform 0.25s ease; }
.category-hover:hover .category-icon { transform: scale(1.15); }

/* =========================================================
   MATERIAL CARDS
   ========================================================= */
.material-card {
    transition: all 0.25s ease;
    border-radius: 12px !important;
    overflow: hidden;
}
.material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important;
}
.material-card .stretched-link::after { border-radius: 12px; }
.list-material-card { transition: all 0.2s ease; border-radius: 12px; }
.list-material-card:hover { background: #f0f4ff !important; transform: translateX(4px); }
.hover-bg:hover { background: #f8f9fa; }

/* =========================================================
   WHY US SECTION
   ========================================================= */
.why-card {
    border-radius: 16px;
    transition: all 0.25s ease;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.why-icon { width: 64px; height: 64px; border-radius: 16px; background: #f0f4ff; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }

/* =========================================================
   DOWNLOAD BOX
   ========================================================= */
.download-box { border-radius: 16px !important; }
.countdown-circle {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; font-weight: 700; color: white;
    box-shadow: 0 4px 16px rgba(40,167,69,0.4);
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.download-btn { border-radius: 50px !important; padding: 14px 40px !important; font-size: 1.1rem; transition: all 0.2s ease; }
.download-btn:hover { transform: scale(1.03); }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb-item a { text-decoration: none; color: #0d6efd; }
.breadcrumb-item.active { color: #6c757d; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar-dark .navbar-nav .nav-link { font-weight: 500; padding: 0.5rem 0.9rem; border-radius: 8px; transition: background 0.2s; }
.navbar-dark .navbar-nav .nav-link:hover { background: rgba(255,255,255,0.1); }
@media (min-width: 1200px) and (max-width: 1400px) {
    .navbar-dark .navbar-nav .nav-link { padding: 0.5rem 0.6rem; font-size: 0.92rem; }
}

/* =========================================================
   SIDEBAR BROWSE
   ========================================================= */
.sidebar-link-browse { border-radius: 8px; padding: 6px 10px; display: block; transition: background 0.2s; }
.sidebar-link-browse:hover { background: #f0f4ff; }

/* =========================================================
   BADGES
   ========================================================= */
.badge { font-weight: 500; }
.bg-primary-subtle { background-color: #dbeafe !important; }
.bg-success-subtle { background-color: #d1fae5 !important; }
.bg-secondary-subtle { background-color: #f1f5f9 !important; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; border: none; color: #0d6efd; }
.pagination .page-item.active .page-link { background: #0d6efd; }
.pagination .page-item.disabled .page-link { color: #adb5bd; }

/* =========================================================
   FOOTER
   ========================================================= */
footer a:hover { color: #fff !important; text-decoration: underline !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 576px) {
    .hero-section { padding: 1.25rem 0; }
    .display-5 { font-size: 1.8rem; }
    .download-btn { padding: 12px 28px !important; font-size: 1rem; }
}

/* =========================================================
   UTILITIES
   ========================================================= */
.min-width-0 { min-width: 0; }
.shadow-xl { box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important; }
.btn-white { background: #fff; border-color: #fff; }
.btn-white:hover { background: #f8f9fa; border-color: #f8f9fa; }

/* =========================================================
   JS-DRIVEN UI (site.js): back-to-top, toast, fade-in cards
   ========================================================= */
#backToTop {
    position: fixed; bottom: 24px; right: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    background: #0d6efd; color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(13,110,253,0.4);
    z-index: 999; font-size: 16px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

.vep-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #fff; padding: 12px 24px; border-radius: 50px;
    font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); z-index: 9999;
    opacity: 0; transition: opacity 0.4s ease;
}
.vep-toast.show { opacity: 1; }

.material-card, .fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.material-card.animate-in, .fade-up.animate-in {
    opacity: 1; transform: translateY(0);
}

/* =========================================================
   UTILITY STRIP - two-tier nav
   ========================================================= */
.utility-strip {
    background: var(--vep-grad-1, #1a237e);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 6px 0;
}
.utility-strip a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s ease; }
.utility-strip a:hover { color: #fff; }

/* =========================================================
   PAGE HEADER BAND (About, Contact, Privacy, Terms, Sitemap,
   Request, Tools) - uses the same gradient as the homepage hero
   ========================================================= */
.page-header-band {
    background: linear-gradient(135deg, var(--vep-grad-1, #1a237e) 0%, var(--vep-grad-2, #283593) 40%, var(--vep-grad-3, #1565c0) 100%);
    padding: 3rem 0;
}
.page-header-band h1 { color: #fff; font-weight: 700; }

/* =========================================================
   VIDEO LIBRARY (playlists & video player)
   ========================================================= */
.video-card, .playlist-card {
    transition: all 0.3s ease;
}
.video-card:hover, .playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14) !important;
}
.play-overlay {
    opacity: 0;
    transition: opacity 0.2s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.video-card:hover .play-overlay { opacity: 1; }

/* =========================================================
   CITATION BOX (Detail.aspx)
   ========================================================= */
#citeBox .card-body { border-radius: 12px; }
#citeTabs .nav-link { color: #6c757d; font-size: 0.85rem; border-radius: 50px; }
#citeTabs .nav-link.active { background: #0d6efd; color: #fff; }
#citeText { background: #f8f9fa; padding: 0.75rem; border-radius: 10px; border: 1px dashed #dee2e6; }

/* =========================================================
   STUDY TOOLS (Tools.aspx)
   ========================================================= */
.stat-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 0.5rem;
}
.stat-box-num { font-size: 1.6rem; font-weight: 700; color: #0d6efd; }
.stat-box-label { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: #6c757d; }
.timer-display { font-size: 4.5rem; font-weight: 700; color: #0d6efd; line-height: 1; }
#toolTabs .nav-link { border-radius: 50px; color: #0d6efd; font-weight: 600; }
#toolTabs .nav-link.active { background: #0d6efd; color: #fff; }

/* =========================================================
   BIBLIOGRAPHY EXPORT (Bookmarks.aspx)
   ========================================================= */
.font-mono { font-family: 'Courier New', Consolas, monospace; }
