/* =========================================
   SHIVI NOTES - MAIN STYLESHEET
   ========================================= */
:root {
    --bg-body: #f9f9f9;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #6b7280;
    --primary: #0f766e;
    --border: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-dark); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }
a { text-decoration: none; color: inherit; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; padding: 15px 5%; align-items: center; background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 22px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 10px; letter-spacing: -0.5px; }
.nav-right { display: flex; align-items: center; gap: 25px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-dark); }
.btn-outline { border: 1px solid var(--text-dark); padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: 0.2s; display: inline-block;}
.btn-outline:hover { background: var(--text-dark); color: white; }
.btn-solid { background: var(--primary); color: white; padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: 0.2s; border: none; display: inline-block;}
.btn-solid:hover { opacity: 0.9; }

/* VIP TOOL BUTTON */
.nav-tool-btn { background: linear-gradient(135deg, #0f766e, #14b8a6); color: white !important; padding: 6px 16px; border-radius: 25px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 3px 10px rgba(15, 118, 110, 0.3); transition: all 0.3s ease; font-weight: 600; font-size: 14px; }
.nav-tool-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(15, 118, 110, 0.4); }
.badge-new { background: #ef4444; color: white; font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 800; letter-spacing: 0.5px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* HERO & SEARCH */
.hero { background: linear-gradient(to right, rgba(20, 25, 35, 0.9) 0%, rgba(20, 25, 35, 0.7) 100%), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1500&q=80') center/cover no-repeat; color: var(--text-light); padding: 100px 5%; text-align: left; transition: padding 0.3s ease; }
.hero h1 { font-size: 46px; font-weight: 800; margin-bottom: 15px; letter-spacing: -1px; max-width: 600px; line-height: 1.2; }
.hero p { font-size: 16px; color: #d1d5db; margin-bottom: 35px; max-width: 600px; }
.search-wrapper { position: relative; max-width: 650px; margin: 0; }
.search-box { display: flex; background: white; border-radius: 30px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); align-items: center; }
.search-box input { flex: 1; padding: 15px 20px; border: none; font-size: 16px; color: var(--text-dark); outline: none; background: transparent; }
.search-btn { background: #2d2d2d; color: white; border: none; padding: 0 25px; height: 44px; border-radius: 25px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; transition: 0.2s; }
.search-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: 0 0 6px 6px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: none; text-align: left; z-index: 50; max-height: 350px; overflow-y: auto; border: 1px solid var(--border); border-top: none; }
.suggest-item { padding: 12px 20px; cursor: pointer; color: var(--text-dark); font-size: 14px; font-weight: 500; }
.suggest-item:hover { background: #f3f4f6; }

/* SECTIONS & CARDS */
.section-container { padding: 60px 5%; background: white; border-bottom: 1px solid var(--border); }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }
.pdf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 20px; }
.category-row { margin-bottom: 50px; }
.cat-heading { font-size: 22px; font-weight: 800; margin-bottom: 15px; color: var(--text-dark); letter-spacing: -0.5px; }

/* CAROUSEL */
.carousel-container { position: relative; display: flex; align-items: center; }
.carousel-track { display: flex; gap: 15px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 15px; padding-top: 5px; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.slider-arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 38px; height: 38px; background: white; border: 1px solid var(--border); border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-muted); transition: 0.2s; }
.slider-arrow:hover { background: #f9f9f9; color: var(--text-dark); }
.right-arrow { right: -15px; }
.left-arrow { left: -15px; }

/* DOC CARD */
.doc-card { flex: 0 0 auto; width: 200px; background: white; border: 1px solid var(--border); border-radius: 4px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease; }
.doc-card:hover { box-shadow: 0 8px 16px rgba(0,0,0,0.06); border-color: #d1d5db; transform: translateY(-2px); }
.card-thumbnail { height: 240px; background-color: #f3f4f6; border-bottom: 1px solid var(--border); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pdf-badge { position: absolute; top: 12px; left: 12px; background-color: #1a1a1a; color: white; font-size: 10px; font-weight: 700; padding: 4px 6px; border-radius: 2px; z-index: 10; }
.card-content { padding: 15px; flex-grow: 1; }
.card-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 6px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-dark); }
.card-author { font-size: 12px; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-footer { padding: 12px 15px; border-top: 1px solid #f3f4f6; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.bookmark-btn { cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.bookmark-btn:hover { opacity: 0.7; }
.show-more-btn { background: transparent; border: 1px solid var(--border); color: var(--text-dark); padding: 10px 25px; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.show-more-btn:hover { background: #f3f4f6; }

/* SEARCH RESULTS */
#searchResults { display: none; padding: 40px 5% 80px; background: white; min-height: 60vh; }
.result-stats { font-size: 20px; color: var(--text-dark); margin-bottom: 20px; font-weight: 600;}
.list-card { display: flex; gap: 20px; padding: 20px; border: 1px solid var(--border); background: white; margin-bottom: 20px; transition: 0.2s; border-radius: 2px; }
.list-card:hover { border-color: #d1d5db; box-shadow: 0 4px 15px rgba(0,0,0,0.05);}
.list-cover-det { width: 140px; height: 180px; flex-shrink: 0; border: 1px solid var(--border); background: #f3f4f6; position: relative; display: flex; justify-content: center; align-items: center; border-radius: 2px; overflow: hidden;}
.list-details { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.list-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.list-title { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; line-height: 1.3; }
.list-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* CTA & FOOTER */
.cta-section { text-align: center; padding: 70px 5%; background: #fdfdfd; }
.cta-section h2 { font-size: 28px; font-weight: 800; margin-bottom: 15px; }
.cta-section p { font-size: 15px; color: var(--text-muted); margin-bottom: 25px; max-width: 500px; margin-left: auto; margin-right: auto; }
.footer { background: var(--text-dark); color: white; padding: 50px 5% 30px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.footer-col h4 { font-size: 16px; margin-bottom: 15px; color: #a3a3a3; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; color: white; font-size: 14px; margin-bottom: 10px; transition: 0.2s; }
.footer-col a:hover { color: #d1d5db; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #a3a3a3; flex-wrap: wrap; gap: 15px; }

/* MOBILE RESPONSIVE */
@media(max-width: 768px) {
    .navbar { padding: 12px 10px; }
    .logo { font-size: 16px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .slider-arrow { display: none; }
    .list-card { flex-direction: column; }
    .list-cover-det { width: 100px; height: 140px; }
    
    .nav-tool-btn {
        position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%);
        width: 85%; justify-content: center; padding: 14px; font-size: 16px;
        z-index: 1000; box-shadow: 0 10px 30px rgba(15, 118, 110, 0.4);
    }
    .nav-tool-btn:hover { transform: translateX(-50%) translateY(-2px); }
    .nav-right > a[href="profile.php"] { font-size: 0 !important; }
    .nav-right > a[href="profile.php"] img { width: 32px !important; height: 32px !important; }
    body { padding-bottom: 80px; }
}