/* Hide Vue elements until Vue is ready */
[v-cloak] {
    display: none !important;
}

/* Post Card Styles */
.post-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image.video-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--dragonroads-primary, #D20158);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.post-card:hover .video-indicator {
    transform: translateY(-2px);
}

.video-indicator-center {
    position: static;
    width: 72px;
    height: 72px;
    background: var(--dragonroads-primary, #D20158);
    color: white;
    border-radius: 8px;
}

.post-card:hover .video-indicator-center {
    transform: translateY(-3px);
}

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.post-category {
    display: inline-block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.post-date {
    font-size: 0.85rem;
    color: #999;
    margin: 0.5rem 0 0 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0 8rem 0;
}

.no-posts {
    text-align: center;
    padding: 3rem 0;
    color: #666;
    font-size: 1.1rem;
}

/* Featured & Recommended Section */
.featured-recommended-section {
    margin-bottom: 3rem;
}

.featured-recommended-section.loading-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-recommended-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Featured Card Styles */
.featured-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
    transition: box-shadow 0.3s ease;
}

.featured-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--dragonroads-tertiary, #15559A);
    color: white;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1;
}

.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.featured-content {
    padding: 1.5rem;
}

.featured-category {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-family: 'Roboto Serif', serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dragonroads-black-text, #3D3D3D);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.featured-link {
    display: inline-block;
    color: var(--dragonroads-primary, #D20158);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid var(--dragonroads-primary, #D20158);
    border-radius: 2px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.featured-link:hover {
    background-color: var(--dragonroads-primary, #D20158);
    color: white;
}

/* Recommended Section Styles */
.recommended-section {
    padding-top: 0;
}

.recommended-header {
    border-top: 3px solid var(--dragonroads-primary, #D20158);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.recommended-title {
    font-family: 'Roboto Serif', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dragonroads-primary, #D20158);
}

.recommended-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommended-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.recommended-item:hover {
    background-color: #f8f9fa;
}

.recommended-item:last-child {
    border-bottom: none;
}

.recommended-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dragonroads-black-text, #3D3D3D);
    min-width: 28px;
    flex-shrink: 0;
}

.recommended-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dragonroads-black-text, #3D3D3D);
    line-height: 1.4;
}

/* Featured Videos Section */
.featured-videos-section {
    margin-bottom: 3rem;
}

.featured-videos-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-videos-title {
    font-family: 'Roboto Serif', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dragonroads-black-text, #3D3D3D);
    margin: 0;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--dragonroads-black-text, #3D3D3D);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.view-all-btn:hover {
    color: var(--dragonroads-primary, #D20158);
}

.view-all-btn svg {
    flex-shrink: 0;
}

/* Video Cards Grid */
.video-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Loading More */
.loading-more {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

/* No Videos Message */
.no-videos {
    text-align: center;
    color: #666;
    font-size: 1rem;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Category Filter */
.category-filter-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
}

.category-filter-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.category-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.filter-tab {
    padding: 1rem 1.75rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.filter-tab:hover {
    color: #374151;
}

.filter-tab.active {
    color: #111827;
    font-weight: 600;
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: #dc2766;
    border-radius: 2px 2px 0 0;
}

/* Results Section */
.results-section {
    min-height: 200px;
}

/* Cards Grid (shared) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .video-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .featured-recommended-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-image {
        height: 220px;
    }
    
    .featured-content {
        padding: 1rem;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
    
    .recommended-title {
        font-size: 1.125rem;
    }
    
    .recommended-item {
        padding: 0.875rem 0;
    }
    
    .recommended-text {
        font-size: 0.9375rem;
    }

    .featured-videos-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .featured-videos-title {
        font-size: 1.5rem;
    }

    .video-cards-grid {
        grid-template-columns: 1fr;
    }

    .category-filter-container {
        width: 100%;
    }
    
    .category-filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex-wrap: nowrap;
    }
    
    .category-filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        flex-shrink: 0;
    }
    
    .filter-tab.active::after {
        left: 0.75rem;
        right: 0.75rem;
    }
}
