/* Lark Media Manager - Base Stylesheet */

:root {
    --primary: #5aa2ff;
    --primary-dark: #2f6bff;
    --bg: #0a0e16;
    --bg-light: #1a202c;
    --surface: #151d2b;
    --border: #2d3f5f;
    --text: #e9eef7;
    --text-muted: #a7b0c2;
    --gold: #c5a35a;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

/* Webkit Scrollbars (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(10, 14, 22, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.user-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(90, 162, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 16px rgba(90, 162, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(90, 162, 255, 0.3);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(90, 162, 255, 0.1), rgba(197, 163, 90, 0.05));
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
}

.search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(90, 162, 255, 0.1);
}

.search-results {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-y: auto;
    display: none;
    z-index: 1000;
    max-height: 60vh;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--surface);
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: var(--radius);
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    border: 2px solid var(--surface);
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.result-title {
    font-weight: 600;
    color: var(--text);
}

.result-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.result-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.result-badge.available {
    background: #46d39a;
}

/* Quick Links */
.quick-links {
    padding: 6rem 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    min-height: 500px;
    display: flex;
    align-items: center;
}

.quick-links .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.link-card {
    padding: 3rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.2s ease;
}

.link-card:hover {
    border-color: var(--primary);
    background: rgba(90, 162, 255, 0.05);
    transform: translateY(-4px);
}

.link-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.link-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.link-card a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
}

.link-card a:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

.footer a {
    color: var(--primary);
}

/* Card Enhancements */
.search-result-item {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(90, 162, 255, 0.2);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}
