/* ==========================================================================
   TokVibe Theme - Modern TikTok Video & Audio Portal
   ========================================================================== */

:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    
    --border-color: #334155;
    --border-light: #475569;
    
    --text-heading: #ffffff;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    
    --tok-pink: #fe2c55;
    --tok-cyan: #00f2fe;
    --tok-gradient: linear-gradient(135deg, #fe2c55, #00f2fe);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 25px rgba(254, 44, 85, 0.25);
    --radius-md: 12px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    font-family: var(--font-body);
    font-display: swap;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--tok-cyan);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #38bdf8;
}

/* Header */
#site-header {
    background: #0b1120;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1240px;
    width: 92%;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
}

.logo-badge {
    background: var(--tok-gradient);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Search Form */
.search-form {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.search-input {
    width: 100%;
    padding: 11px 18px 11px 42px;
    background: #1e293b;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #ffffff;
    transition: all 0.25s ease;
}

.search-input:focus {
    outline: none;
    background: #0f172a;
    border-color: var(--tok-pink);
    box-shadow: 0 0 0 3px rgba(254, 44, 85, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Main Layout */
.main-wrapper {
    max-width: 1240px;
    width: 92%;
    margin: 32px auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
}

@media (max-width: 992px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Card */
.tok-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.badge-tok {
    display: inline-block;
    background: rgba(254, 44, 85, 0.15);
    color: var(--tok-pink);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

/* TikTok Grid */
.tok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.tok-video-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tok-video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--tok-pink);
}

.tok-thumb {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.tok-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tok-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.btn-tok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--tok-gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 30px;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-tok:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

/* Sidebar */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 28px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tok-pink);
}

/* Footer */
#site-footer {
    background: #0b1120;
    color: var(--text-muted);
    padding: 48px 0 28px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1240px;
    width: 92%;
    margin: 0 auto;
}
