/**
 * FOREST Theme — green and natural
 * Green tones, organic shapes, natural shadows
 */

:root {
    /* Colors */
    --primary-color: #4caf50;
    --primary-hover: #388e3c;
    --secondary-color: #66bb6a;
    --secondary-hover: #43a047;
    --background: #0d1f0d;
    --surface: #1b3e1b;
    --surface-hover: #2a5d2a;
    --surface-border: #2a5d2a;
    --text-primary: #e8f5e9;
    --text-secondary: #a5d6a7;
    --text-muted: #81c784;
    
    /* Design */
    --border-radius: 24px; /* Organic, very rounded */
    --card-shadow: 0 8px 24px rgba(76, 175, 80, 0.25);
    --card-padding: 18px;
    --spacing: 22px;
    --font-weight-title: 700;
    --font-weight-body: 500;
    
    /* Video Cards */
    --video-card-radius: 24px;
    --video-card-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
    --video-card-hover: scale(1.06) translateY(-6px);
    --video-card-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Buttons */
    --btn-radius: 20px;
    --btn-padding: 14px 30px;
    --btn-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    --btn-hover-transform: translateY(-3px) scale(1.05);
    
    /* Inputs */
    --input-radius: 20px;
    --input-border-width: 2px;
    --input-padding: 14px 18px;
}

/* Base Styles */
body {
    background: linear-gradient(180deg, #0d1f0d 0%, #1b3e1b 50%, #0d1f0d 100%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.01em;
}

/* Video Cards - Organic, natural */
a.group .bg-\[#181818\],
a.group .bg-\[#0f0f0f\] {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border-radius: var(--video-card-radius) !important;
    box-shadow: var(--video-card-shadow) !important;
    transition: var(--video-card-transition) !important;
    border: 2px solid var(--surface-border) !important;
    position: relative !important;
    overflow: hidden !important;
}

a.group .bg-\[#181818\] img,
a.group .bg-\[#0f0f0f\] img {
    background-color: transparent !important;
}

a.group .bg-\[#181818\]::before,
a.group .bg-\[#0f0f0f\]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(76, 175, 80, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

a.group:hover .bg-\[#181818\],
a.group:hover .bg-\[#0f0f0f\] {
    transform: var(--video-card-hover) !important;
    box-shadow: 0 12px 36px rgba(76, 175, 80, 0.4) !important;
    border-color: var(--primary-color) !important;
}

a.group:hover .bg-\[#181818\]::before,
a.group:hover .bg-\[#0f0f0f\]::before {
    opacity: 1;
}

.bg-\[#181818\]:not(img):not(.absolute),
.bg-\[#0f0f0f\]:not(img):not(.absolute) {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
}

/* Rounded elements - organic */
.rounded-lg,
.rounded-xl,
.rounded-2xl {
    border-radius: var(--border-radius) !important;
}

/* Buttons - organic, natural */
button.bg-\[#FF0000\],
button.bg-\[#cc0000\],
a.bg-\[#FF0000\],
a.bg-\[#cc0000\] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    color: #ffffff !important;
    border-radius: var(--btn-radius) !important;
    padding: var(--btn-padding) !important;
    box-shadow: var(--btn-shadow) !important;
    border: 2px solid var(--primary-color) !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    transition: var(--video-card-transition) !important;
    position: relative !important;
    overflow: hidden !important;
}

button.bg-\[#FF0000\]::after,
button.bg-\[#cc0000\]::after,
a.bg-\[#FF0000\]::after,
a.bg-\[#cc0000\]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

button.bg-\[#FF0000\]:hover::after,
button.bg-\[#cc0000\]:hover::after,
a.bg-\[#FF0000\]:hover::after,
a.bg-\[#cc0000\]:hover::after {
    width: 400px;
    height: 400px;
}

button.bg-\[#FF0000\]:hover,
button.bg-\[#cc0000\]:hover,
a.bg-\[#FF0000\]:hover,
a.bg-\[#cc0000\]:hover {
    transform: var(--btn-hover-transform) !important;
    box-shadow: 0 10px 28px rgba(76, 175, 80, 0.5) !important;
    border-color: var(--secondary-color) !important;
}

/* Inputs - organic */
input,
textarea,
select {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border: var(--input-border-width) solid var(--surface-border) !important;
    border-radius: var(--input-radius) !important;
    padding: var(--input-padding) !important;
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-body) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.25) !important;
}

/* Header - organic, natural */
header {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border-bottom: 2px solid var(--surface-border) !important;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.25) !important;
    border-radius: 0 !important;
}

/* Header elements */
header .bg-\[#212121\] {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
}

header .border-\[#303030\] {
    border-color: var(--surface-border) !important;
}

/* Search input - organic */
header input[type="text"] {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border: 2px solid var(--surface-border) !important;
    border-radius: 24px !important;
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
    max-width: 100% !important;
}

header input[type="text"]:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.25) !important;
}

/* Search button - organic */
header .search-button {
    background: linear-gradient(135deg, var(--surface-border) 0%, var(--surface) 100%) !important;
    border: 2px solid var(--surface-border) !important;
    border-radius: 24px !important;
    border-left: none !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
    transition: all 0.3s ease !important;
}

header .search-button:hover {
    background: linear-gradient(135deg, var(--surface-hover) 0%, var(--surface) 100%) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.25) !important;
    transform: scale(1.05) !important;
}

header form .rounded-l-full {
    border-radius: 24px 0 0 24px !important;
}

header form .rounded-r-full {
    border-radius: 0 24px 24px 0 !important;
}

/* Header buttons — organic */
header button,
header a {
    border-radius: 24px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

header .hover\:bg-\[#303030\]:hover {
    background: linear-gradient(135deg, var(--surface-hover) 0%, var(--surface) 100%) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3) !important;
    border: 2px solid var(--primary-color) !important;
}

header .rounded-full {
    border-radius: 24px !important;
}

/* Sign In butonu - organic */
header .bg-\[#FF0000\] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border-radius: 24px !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    position: relative !important;
    overflow: hidden !important;
}

header .bg-\[#FF0000\]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

header .bg-\[#FF0000\]:hover::after {
    width: 400px;
    height: 400px;
}

header .bg-\[#FF0000\]:hover {
    box-shadow: 0 10px 28px rgba(76, 175, 80, 0.5) !important;
    transform: translateY(-3px) scale(1.05) !important;
    border-color: var(--secondary-color) !important;
}

/* Mobile search dropdown */
#mobile-search {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border: 2px solid var(--surface-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3) !important;
}

/* Sidebar - organic */
aside#sidebar {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border-right: 2px solid var(--surface-border) !important;
    border-radius: 0 !important;
    box-shadow: 4px 0 16px rgba(76, 175, 80, 0.25) !important;
}

aside#sidebar a {
    border-radius: 24px !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    position: relative !important;
    overflow: hidden !important;
}

aside#sidebar a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(76, 175, 80, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

aside#sidebar a:hover::before {
    opacity: 1;
}

aside#sidebar a:hover {
    background: linear-gradient(135deg, var(--surface-hover) 0%, var(--surface) 100%) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3) !important;
    border-left: 3px solid var(--primary-color) !important;
    transform: translateX(4px) !important;
}

aside#sidebar .border-t {
    border-color: var(--surface-border) !important;
}

/* Sidebar overlay */
#sidebar-overlay {
    background-color: rgba(13, 31, 13, 0.8) !important;
}

/* Modal - organic */
#auth-modal .bg-\[#212121\] {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border-radius: 24px !important;
    border: 2px solid var(--surface-border) !important;
    box-shadow: 0 12px 36px rgba(76, 175, 80, 0.3) !important;
}

#auth-modal input {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border: 2px solid var(--surface-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
}

#auth-modal input:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.25) !important;
}

#auth-modal .border-b {
    border-color: var(--surface-border) !important;
}

#auth-modal button.bg-\[#FF0000\] {
    border-radius: 20px !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-title) !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 2px 8px rgba(76, 175, 80, 0.2) !important;
}

/* Grid spacing */
.grid {
    gap: var(--spacing) !important;
}

/* Scrollbar - organic */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Footer - Organic, natural */
footer {
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%) !important;
    border-top: 2px solid var(--surface-border) !important;
    color: var(--text-secondary) !important;
    position: relative !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer .bg-\[#212121\] {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
}

footer .border-\[#303030\] {
    border-color: var(--surface-border) !important;
}

footer h3 {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
    border-bottom: 2px solid var(--surface-border) !important;
    position: relative !important;
}

footer h3::before {
    content: '🌿';
    position: absolute;
    left: -30px;
    opacity: 0.5;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

footer a {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
    padding: 6px 0 !important;
    display: inline-block !important;
    position: relative !important;
    border-left: 3px solid transparent !important;
    padding-left: 12px !important;
}

footer a::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
    padding-left: 16px !important;
}

footer a:hover::before {
    opacity: 1;
    left: 4px;
}

footer .bg-\[#cc0000\] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--surface-hover) 100%) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 24px !important;
    padding: 18px !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
}

footer .bg-\[#cc0000\]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

footer .bg-\[#cc0000\] p {
    color: #ffffff !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Social icons - organic */
footer .rounded-full {
    border-radius: 24px !important;
    border: 2px solid var(--surface-border) !important;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
}

footer .rounded-full:hover {
    border-color: var(--primary-color) !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--surface-hover) 100%) !important;
    transform: scale(1.15) rotate(-5deg) !important;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3) !important;
}

/* Newsletter form - organic */
footer input[type="email"] {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%) !important;
    border: 2px solid var(--surface-border) !important;
    border-radius: 24px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
}

footer input[type="email"]:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2), 0 4px 12px rgba(76, 175, 80, 0.25) !important;
}

footer button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--surface-hover) 100%) !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 24px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

footer button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

footer button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

footer button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35) !important;
}

footer .border-t {
    border-top: 2px solid var(--surface-border) !important;
}

footer .text-center {
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
}

/* Tailwind Overrides */
.bg-\[#212121\] { background: linear-gradient(135deg, var(--surface-hover) 0%, var(--surface) 100%) !important; }
.bg-\[#303030\] { background-color: var(--surface-border) !important; }
.text-\[#f1f1f1\],
.text-white { color: var(--text-primary) !important; }
.text-\[#aaaaaa\] { color: var(--text-secondary) !important; }
.border-\[#303030\] { border-color: var(--surface-border) !important; }
.text-\[#3ea6ff\] { color: var(--secondary-color) !important; }
.hover\:bg-\[#303030\]:hover { background-color: var(--surface-hover) !important; }
.hover\:bg-\[#404040\]:hover { background-color: var(--surface-hover) !important; }
.bg-\[#121212\] { background-color: var(--surface) !important; }
.focus\:border-\[#3ea6ff\]:focus { border-color: var(--primary-color) !important; }

