/* assets/css/homepage.css */

/* Site Header */
.site-header {
    background: var(--black);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo a {
    color: var(--white);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    background: var(--card);
    padding: 16px 20px;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav a {
    color: var(--gray);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav.active {
    display: flex;
}

/* Hero Section */
.hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--black) 0%, var(--dark) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-content .highlight {
    background: linear-gradient(135deg, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 32px;
}

.btn-lg {
    padding: 16px 48px;
    font-size: 18px;
}

/* Live Section */
.live-section {
    padding: 60px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
}

.live-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.live-card.featured {
    border-color: rgba(220, 38, 38, 0.3);
}

.live-thumbnail {
    position: relative;
    height: 400px;
    background: var(--dark);
    overflow: hidden;
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
}

.thumbnail-placeholder .live-icon {
    font-size: 64px;
}

.live-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.live-stats {
    display: flex;
    gap: 16px;
}

.viewer-count {
    background: rgba(0,0,0,0.6);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.live-info {
    padding: 24px;
}

.live-info h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.live-admin {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.live-actions {
    display: flex;
    gap: 12px;
}

.no-live {
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.no-live p {
    margin-bottom: 16px;
}

/* Posts Section */
.posts-section {
    padding: 60px 20px;
    background: var(--dark);
}

.post-count {
    color: var(--gray);
    font-size: 14px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.post-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--white);
}

.post-media {
    width: 100%;
    max-height: 240px;
    overflow: hidden;
    background: var(--dark);
}

.post-media img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-media video {
    width: 100%;
    max-height: 240px;
    background: var(--dark);
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.post-type-badge {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray);
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-text {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    color: var(--gray);
}

.post-link {
    display: inline-block;
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
    margin-bottom: 12px;
}

.post-link:hover {
    color: var(--white);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.post-date {
    color: var(--dark-gray);
    font-size: 13px;
}

.post-actions {
    display: flex;
    gap: 12px;
}

.like-btn,
.share-btn {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 4px;
}

.like-btn:hover {
    color: #dc2626;
}

.share-btn:hover {
    color: var(--white);
}

.like-btn .like-count {
    margin-left: 4px;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    grid-column: 1 / -1;
}

.no-posts p {
    margin-bottom: 16px;
}

.load-more {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    text-align: right;
    color: var(--dark-gray);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .live-thumbnail {
        height: 240px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .main-nav a:not(.btn) {
        display: none;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-copy {
        text-align: center;
    }
    
    .live-actions {
        flex-direction: column;
    }
    
    .live-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 16px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .live-thumbnail {
        height: 180px;
    }
    
    .live-info h3 {
        font-size: 18px;
    }
}