/* Study Farm - Signature Theme Stylesheet */
:root {
    --bg-main: #071f14;
    --bg-surface: #0b2b1d;
    --bg-card: #0f3725;
    --bg-card-hover: #144630;
    --border-subtle: #194f35;
    --border-glow: #22c55e;
    --accent-leaf: #38d45e;
    --accent-gold: #f5a623;
    --accent-gold-hover: #ffb738;
    --text-white: #ffffff;
    --text-cream: #f6f8f6;
    --text-sage: #9ae6b4;
    --text-muted: #809a8c;
}

body {
    background-color: var(--bg-main);
    color: var(--text-cream);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Outfit', sans-serif;
}

/* Custom Forest Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #071f14;
}

::-webkit-scrollbar-thumb {
    background: #194f35;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22c55e;
}

/* Background Atmosphere */
.forest-glow-top {
    position: fixed;
    top: -150px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(7, 31, 20, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.gold-glow-bottom {
    position: fixed;
    bottom: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, rgba(7, 31, 20, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-farm-grid {
    background-image: 
        radial-gradient(rgba(34, 197, 94, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Course Card */
.farm-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

.farm-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: rgba(56, 212, 94, 0.5);
    box-shadow: 0 20px 40px -8px rgba(34, 197, 94, 0.2), 0 0 25px -4px rgba(245, 166, 35, 0.15);
}

/* Sidebar Item */
.sidebar-item {
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar-item:hover {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--accent-leaf);
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.04) 100%);
    color: var(--accent-leaf);
    border-left: 4px solid var(--accent-leaf);
}

/* Tab Navigation */
.nav-tab {
    position: relative;
    color: var(--text-muted);
    font-weight: 700;
    transition: color 0.2s;
    padding-bottom: 0.75rem;
}

.nav-tab:hover {
    color: var(--text-white);
}

.nav-tab.active {
    color: var(--accent-gold);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-gold);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.6);
}

/* Click feedback */
.btn-click-effect:active {
    transform: scale(0.96);
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Farm Badge */
.badge-gold {
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.4);
    color: var(--accent-gold);
}

.badge-leaf {
    background: rgba(56, 212, 94, 0.15);
    border: 1px solid rgba(56, 212, 94, 0.4);
    color: var(--accent-leaf);
}

/* Button CTA */
.btn-farm-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
    transition: all 0.25s ease;
}

.btn-farm-primary:hover {
    background: linear-gradient(135deg, #38d45e 0%, #22c55e 100%);
    box-shadow: 0 6px 22px rgba(34, 197, 94, 0.5);
    transform: translateY(-1px);
}

.btn-farm-gold {
    background: linear-gradient(135deg, #f5a623 0%, #d97706 100%);
    color: #071f14;
    font-weight: 900;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
    transition: all 0.25s ease;
}

.btn-farm-gold:hover {
    background: linear-gradient(135deg, #fbb034 0%, #f5a623 100%);
    box-shadow: 0 6px 22px rgba(245, 166, 35, 0.5);
    transform: translateY(-1px);
}
