/* =====================================================================
   StudyNest — Main Stylesheet
   Ultra-Premium EdTech & Bookstore Design System
   ===================================================================== */

:root {
    --color-[#0f5e4d]: #0F5E4D;
    --color-[#1b8f74]: #1B8F74;
    --color-[#f5a623]: #F5A623;
    --color-dark: #072820;
    --color-slate-bg: #F8FAFC;
    --font-manrope: 'Manrope', 'Inter', sans-serif;
    --font-sans: 'Inter', sans-serif;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: #F8FAFC; color: #1E293B; }

img { max-width: 100%; height: auto; }

/* ── Typography ─────────────────────────────────────────────────────── */
.font-manrope { font-family: var(--font-manrope); }
.font-sans    { font-family: var(--font-sans); }

/* ── Custom Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F1F5F9; }
::-webkit-scrollbar-thumb { background: #0F5E4D; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #1B8F74; }

/* ── Selection ──────────────────────────────────────────────────────── */
::selection { background: #CCFBF1; color: #0F5E4D; }

/* ── Utility Classes ────────────────────────────────────────────────── */
.container { max-width: 1280px; margin-left: auto; margin-right: auto; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Cards ──────────────────────────────────────────────────────────── */
.studynest-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem; /* 20px rounded corners */
    overflow: hidden;
    transition: all 0.25s ease;
}

.studynest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -5px rgba(15, 94, 77, 0.12);
    border-color: #CBD5E1;
}

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge-bestseller-green {
    background-color: #0F5E4D;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-trending-amber {
    background-color: #D97706;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-popular-teal {
    background-color: #1B8F74;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.badge-new-release {
    background-color: #F5A623;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-studynest-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #0F5E4D;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.btn-studynest-primary:hover {
    background-color: #0c4a3e;
    box-shadow: 0 4px 14px rgba(15, 94, 77, 0.3);
}

.btn-studynest-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #1B8F74;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.btn-studynest-secondary:hover {
    background-color: #0F5E4D;
}

/* ── Custom Form Fields & Labels ────────────────────────────────────── */
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #1E293B;
    background-color: #ffffff;
    border: 1px solid #CBD5E1;
    border-radius: 0.5rem;
    transition: all 0.2s;
    outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: #0F5E4D;
    box-shadow: 0 0 0 3px rgba(15, 94, 77, 0.15);
}
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}
