:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161d;
    --bg-placeholder: #1a1a22;
    --text-primary: #ffffff;
    --text-secondary: #8a8a9a;
    --accent: #ff2d55;
    --accent-secondary: #ff6b8a;
    --accent-hover: #ff4466;
    --border: #2a2a35;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo span {
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
}

/* Category Pills */
.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.category-pill:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.category-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.3);
}

/* Search & Filter Bar */
.filter-bar {
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

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

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

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

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
}

.sort-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
}

/* ============================================
   LAYOUT TOGGLE
   ============================================ */

.layout-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    border: none;
}

.layout-toggle button {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.layout-toggle button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.layout-toggle button.active {
    background: var(--accent);
    color: #fff;
}

/* ============================================
   MASONRY GRID LAYOUTS
   ============================================ */

/* Default: Grid 4 columns */
.masonry-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 50vh;
}

/* Single column mode */
.masonry-grid.single-column {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* True masonry (variable heights) */
.masonry-grid.masonry-layout {
    display: block;
    columns: 4;
    column-gap: 16px;
}

.masonry-grid.masonry-layout .content-card {
    break-inside: avoid;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .masonry-grid { grid-template-columns: repeat(3, 1fr); }
    .masonry-grid.masonry-layout { columns: 3; }
}

@media (max-width: 768px) {
    .masonry-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
    .masonry-grid.masonry-layout { columns: 2; }
    .layout-toggle { display: none; } /* Hide on mobile */
}

@media (max-width: 480px) {
    .masonry-grid { grid-template-columns: 1fr; }
    .masonry-grid.masonry-layout { columns: 1; }
}

/* Content Cards */
.content-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: cardEnter 0.5s ease forwards;
}

.content-card .card-link,
.content-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.content-card:nth-child(1) { animation-delay: 0.05s; }
.content-card:nth-child(2) { animation-delay: 0.1s; }
.content-card:nth-child(3) { animation-delay: 0.15s; }
.content-card:nth-child(4) { animation-delay: 0.2s; }
.content-card:nth-child(5) { animation-delay: 0.25s; }
.content-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow), 0 20px 60px rgba(255, 45, 85, 0.15);
    border-color: var(--accent);
    z-index: 10;
}

.content-card.media-loaded .media-container::after {
    opacity: 0;
}

.media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--bg-placeholder);
}

/* Loading shimmer instead of solid color */
.media-container:empty::before,
.media-container .skeleton-media {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        var(--bg-placeholder) 0%, 
        #252530 50%, 
        var(--bg-placeholder) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.media-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-placeholder);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.media-container img,
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

/* Video specific fixes */
.media-container video {
    min-height: 200px;
    background: var(--bg-placeholder);
}

/* Loading state for videos without poster */
.media-container video:not([poster]) {
    background: var(--bg-placeholder);
}

/* Ensure videos are visible */
.media-container video.lazy-video {
    opacity: 1;
}

.media-container img {
    opacity: 0;
}

.media-container img.loaded {
    opacity: 1;
}

.content-card:hover .media-container img,
.content-card:hover .media-container video {
    transform: scale(1.1);
}

.video-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 45, 85, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    z-index: 2;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.content-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.content-card:hover .play-button {
    transform: scale(1);
}

.card-content {
    padding: 16px;
}

.card-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title a,
.content-card a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--accent);
}

.card-stats {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat.heart {
    color: var(--accent);
}

/* ============================================
   SKELETON LOADING STATES
   ============================================ */

.content-card.loading {
    pointer-events: none;
}

.skeleton-media {
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        #252530 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-title {
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.skeleton-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-stats {
    display: flex;
    gap: 16px;
}

.skeleton-stat {
    height: 16px;
    width: 60px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skeleton-stat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 1.5s infinite;
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading-trigger {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    min-height: 100px;
}

.loading-spinner {
    display: flex;
    gap: 8px;
    align-items: center;
}

.loading-spinner span {
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-spinner span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-spinner span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Legacy spinner */
.loading-spinner-single {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-spinner-single::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   LAZY LOADING TRANSITIONS
   ============================================ */

.lazy-image {
    transition: opacity 0.4s ease, transform 0.6s ease;
}

.lazy-video {
    transition: opacity 0.4s ease, transform 0.6s ease;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 45, 85, 0.4);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 45, 85, 0.5);
}

/* WordPress Specific */
.wp-caption {
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* Pagination (legacy) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination span.current {
    background: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   AD CONTAINERS
   ============================================ */

.xxx-ad {
    text-align: center;
    padding: 20px;
    margin: 0 auto;
    max-width: 1600px;
}

.xxx-ad-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
}

.xxx-ad-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 20px;
    padding: 20px;
}

.xxx-ad-sidebar {
    grid-column: span 2;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.xxx-ad iframe,
.xxx-ad img {
    max-width: 100%;
    height: auto;
}

/* Social Links in Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */

.single-post .single-title {
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.single-post .single-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.single-post .single-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.single-post .single-content p {
    margin-bottom: 16px;
}

.single-post .single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs .category-pill {
    padding: 6px 12px;
    font-size: 13px;
}

/* Social Share Buttons */
.social-share {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.social-share h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-posts h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.related-card {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card:hover p {
    color: var(--accent);
}

/* Logo Image */
.logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

/* ============================================
   SINGLE POST PAGE - PROFESSIONAL STYLING
   ============================================ */

.single-post-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.media-hero {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.media-hero video,
.media-hero img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 400px;
    max-height: 70vh;
    object-fit: contain;
    background: var(--bg-placeholder);
}

.post-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px 32px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.post-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--text-primary);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.post-meta .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
}

.post-meta .stat.heart {
    color: var(--accent);
}

.post-meta .date {
    color: var(--text-secondary);
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}

.share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-twitter { background: #1da1f2; }
.share-facebook { background: #4267B2; }
.share-telegram { background: #0088cc; }
.share-whatsapp { background: #25d366; }
.share-reddit { background: #ff4500; }

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
}

.post-navigation a {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.post-navigation a:hover {
    background: var(--border);
    border-color: var(--accent);
}

.post-navigation .nav-prev {
    justify-content: flex-start;
}

.post-navigation .nav-next {
    justify-content: flex-end;
}

.post-navigation .nav-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-navigation .nav-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Related Posts Section */
.related-section {
    margin-top: 40px;
}

.related-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 992px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .post-content { padding: 20px; }
    .post-content h1 { font-size: 22px; }
    .media-hero video,
    .media-hero img { min-height: 250px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .post-navigation { flex-direction: column; }
}

@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   LIGHTBOX / MODAL OVERLAY
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-media img,
.lightbox-media video {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 48px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-prev,
    .lightbox-next {
        background: rgba(0,0,0,0.5);
        width: 50px;
        height: 50px;
        font-size: 36px;
    }
}

.lightbox-info {
    text-align: center;
    padding: 20px;
    color: #fff;
}

.lightbox-title {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

/* ============================================
   LOADING TRIGGER - UPDATED
   ============================================ */

.loading-trigger {
    text-align: center;
    padding: 40px;
    min-height: 100px;
}

.loading-spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-trigger:not(.loading) .loading-spinner-circle {
    display: none;
}

/* ============================================
   LINK COLOR FIXES - FORCE WHITE
   ============================================ */

/* Force all links to inherit color */
a, a:link, a:visited, a:hover, a:active {
    color: inherit !important;
    text-decoration: none !important;
}

.content-card a,
.card-title,
.card-title a,
.post-title a,
.single-post a:not(.share-btn),
.related-posts a {
    color: #fff !important;
    text-decoration: none !important;
}

/* Share buttons can have color */
.share-btn {
    color: #fff !important;
    background: var(--accent) !important;
}

/* Layout toggle hidden */
.layout-toggle {
    display: none !important;
}

/* ============================================
   SINGLE PAGE REDESIGN
   ============================================ */

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

.breadcrumb {
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-secondary) !important;
    font-size: 14px;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent) !important;
}

.media-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.media-wrapper img,
.media-wrapper video {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.media-wrapper video {
    min-height: 400px;
    background: var(--bg-placeholder);
}

.post-info {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.post-info h1 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

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

.actions button {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.like-btn {
    background: transparent;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
}

.like-btn:hover {
    background: var(--accent);
    color: #fff !important;
}

.share-btn {
    background: var(--accent);
    color: #fff !important;
}

.share-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Related section */
.related {
    margin-top: 40px;
}

.related h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-grid .related-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.related-grid .related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.related-grid .related-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

.related-grid .related-card p {
    padding: 12px;
    margin: 0;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .post-info h1 { font-size: 22px; }
    .meta { gap: 12px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .related-grid { grid-template-columns: 1fr; }
    .actions button { flex: 1; }
}

/* ============================================
   LIKE BUTTON STYLES
   ============================================ */

.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    font-size: inherit;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}

.like-btn:hover {
    transform: scale(1.1);
}

.like-btn.liked {
    color: var(--accent);
}

.like-btn.liked .like-count {
    color: var(--accent);
}

/* Card stats container adjustments */
.card-stats {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 13px;
    align-items: center;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
}
