/* TikBeast - Blog Styles */
:root {
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-card-hover: #334155;
    --primary: #0066FF;
    --primary-hover: #0052CC;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --border: #334155;
    --border-light: #475569;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* Header */
.blog-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.blog-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.blog-nav {
    display: none;
}

.blog-nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 16px;
}

.blog-nav-link:hover,
.blog-nav-link.active {
    color: var(--primary);
}

.blog-header-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

/* Main */
.blog-main {
    min-height: 100vh;
}

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 80px 20px;
    text-align: center;
}

.blog-hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.blog-hero-content p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}

.blog-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Slider */
.blog-hero-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 600px;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-content {
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.slider-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text-primary);
}

.slider-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Sections */
.blog-section {
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Blog Grid - Featured */
.blog-grid-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.blog-card-featured {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    display: block;
}

.blog-card-featured:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.blog-card-category {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.category-tag {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.premium-tag {
    background: #F59E0B;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.blog-card-featured h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.read-link {
    color: var(--primary);
    font-weight: 600;
}

/* Blog Grid - Regular */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
    display: block;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.blog-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section */
.blog-cta {
    padding: 80px 20px;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.blog-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .footer-logo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 32px;
    max-width: 1200px;
    margin: 32px auto 0;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .blog-nav {
        display: flex;
    }

    .blog-hero-content h1 {
        font-size: 48px;
    }

    .blog-hero-content p {
        font-size: 18px;
    }

    .blog-grid-featured {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Panel Pages - Keep Basic Styles */
.panel-container,
.profile-container,
.login-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.content-card:hover {
    border-color: var(--primary);
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.badge-free {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.badge-premium {
    background: #F59E0B;
    color: white;
}

.ai-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.ai-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.ai-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.ai-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.ai-content li {
    margin-bottom: 8px;
}

/* Tab Bar - Mobile Only */
.tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    justify-content: space-around;
    z-index: 50;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 8px 16px;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .tab-bar {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}
