/* ==========================================
   XƏBƏR PORTALI - Əsas Stil
   ========================================== */

/* === CSS Variables - Light Theme === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-light: #dbeafe;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

/* === Dark Theme === */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --accent-light: #1e3a5f;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

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

/* === Top Bar === */
.top-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar a {
    color: var(--text-secondary);
    font-size: 13px;
}

.top-bar a:hover { color: var(--accent); }

/* === Header === */
.main-header {
    background: var(--bg-primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo a { color: var(--text-primary); }

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search form {
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.header-search form:focus-within {
    border-color: var(--accent);
}

.header-search input {
    flex: 1;
    border: none;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.header-search button {
    border: none;
    background: var(--accent);
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    transition: background var(--transition);
}

.header-search button:hover { background: var(--accent-hover); }

/* Live Search Results */
.live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.search-result-item:hover { background: var(--bg-hover); }

.search-result-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-item h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-result-item span {
    font-size: 12px;
    color: var(--text-muted);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.notif-btn {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* === Navigation === */
.main-nav {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--accent);
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    white-space: nowrap;
}

.nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--accent-light);
}

/* === Ticker (Breaking News) === */
.ticker-bar {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 8px 0;
    overflow: hidden;
}

.ticker-bar .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-label {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-list {
    list-style: none;
    display: flex;
    animation: ticker 20s linear infinite;
}

.ticker-list li {
    white-space: nowrap;
    padding-right: 60px;
}

.ticker-list a {
    color: white;
    font-size: 13px;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Main Content Layout === */
.main-content {
    padding: 24px 0;
}

.main-content .container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.content-area {
    min-width: 0;
}

/* === Featured Section === */
.featured-section {
    margin-bottom: 32px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 120px;
    gap: 16px;
}

.featured-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: block;
}

.featured-main {
    grid-row: 1 / 3;
}

.featured-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.featured-overlay h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.featured-main .featured-overlay h2 {
    font-size: 24px;
}

.featured-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

/* === Section Headers === */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i { color: var(--accent); }

/* === Posts Grid === */
.posts-section { margin-bottom: 32px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* === Post Card === */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--border-color);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.reklam-card-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}
/* Reklam geri sayım */
.ad-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.ad-countdown i {
    color: var(--warning);
    font-size: 10px;
}

.ad-countdown .cd-text {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.popular-info .ad-countdown {
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 10px;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--warning);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.post-card-body {
    padding: 16px;
}

.category-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.post-card-title a {
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.post-card-meta i { margin-right: 3px; }
.post-card-meta .liked { color: var(--danger); }

.post-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Load More === */
.load-more-wrap {
    text-align: center;
    margin-top: 24px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

/* === Sidebar === */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i { color: var(--accent); }

/* Search Widget */
.search-widget form {
    display: flex;
    gap: 8px;
}

.search-widget input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
}

.search-widget input::placeholder { color: var(--text-muted); }

.search-widget button {
    padding: 10px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-widget button:hover { opacity: 0.9; }

/* Popular Posts */
.popular-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.popular-item:last-child { border-bottom: none; }

.popular-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-number {
    min-width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.popular-number.liked { background: var(--danger); }
.popular-number.recent { background: var(--success); }

.popular-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-info a { color: var(--text-primary); }
.popular-info a:hover { color: var(--accent); }

.popular-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Category Tags */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.category-tag:hover {
    background: var(--cat-color, var(--accent));
    color: white;
    border-color: var(--cat-color, var(--accent));
}

/* Social Follow */
.social-follow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 500;
    transition: transform var(--transition);
}

.social-btn:hover { transform: translateY(-2px); color: white; }
.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.telegram { background: #0088cc; }
.social-btn.youtube { background: #ff0000; }

/* === Single Post === */
.single-post {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.single-post-header { margin-bottom: 24px; }

.single-post-header h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin: 12px 0;
    color: var(--text-primary);
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-left: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-image {
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Article Video Player */
.article-video-player {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    background: #000;
    border: 1px solid var(--border-color);
}

.video-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}

.video-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

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

.video-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.video-slide-count {
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.video-controls {
    padding: 10px 16px;
    background: #1a1a2e;
}

.video-progress {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
}

.video-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s;
}

.video-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.video-play-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
}

.video-label {
    font-size: 14px;
    color: #ccc;
    flex: 1;
}

.video-timer {
    font-size: 13px;
    color: #999;
    font-variant-numeric: tabular-nums;
}

.voice-select {
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #2a2a3e;
    color: #ccc;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    max-width: 200px;
    margin-left: auto;
}

.voice-select:focus {
    outline: none;
    border-color: var(--accent);
}

.voice-select option {
    background: #1a1a2e;
    color: #ccc;
}

.single-post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.single-post-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.single-post-content iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    margin: 16px 0;
}

.single-post-content h2, .single-post-content h3 {
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.single-post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.single-post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
}

/* Share Buttons */
.post-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 24px 0;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-buttons span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition);
}

.share-btn:hover { transform: scale(1.1); color: white; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.telegram { background: #0088cc; }
.share-btn.copy-url { background: var(--text-muted); }

/* Like Section */
.like-section {
    text-align: center;
    margin: 24px 0;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.like-btn:hover, .like-btn.liked {
    border-color: var(--danger);
    color: var(--danger);
    background: #fef2f2;
}

[data-theme="dark"] .like-btn:hover,
[data-theme="dark"] .like-btn.liked {
    background: #3b1515;
}

/* === Comments === */
.comments-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

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

.comment-form {
    margin-bottom: 24px;
}

.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
    font-family: inherit;
}

.comment-form button {
    padding: 10px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.comment-login {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--text-secondary);
}

.comment {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.comment.reply {
    margin-left: 32px;
    border-left: 3px solid var(--accent);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.reply-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
}

.delete-comment-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    margin-left: 10px;
}

.delete-comment-btn:hover {
    color: #b91c1c;
}

.reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    resize: vertical;
    margin: 8px 0;
    font-family: inherit;
}

.reply-form button {
    padding: 6px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
}

/* === Related Posts === */
.related-posts {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* === Auth Pages === */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-secondary);
	
}
.auth-container {
       background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
	
}

.auth-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    width: 600px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-header h2 {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

.btn-full { width: 100%; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

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

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    position: relative;
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #4285f4;
    color: white;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
}

.btn-google:hover { background: #3367d6; color: white; }

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* === Alerts === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

[data-theme="dark"] .alert-success { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .alert-error { background: #7f1d1d; color: #fca5a5; }

/* === Profile Page === */
.profile-page { max-width: 800px; }

.profile-header-card {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    align-items: center;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.profile-info h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 2px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.admin-badge { background: var(--accent); color: white; padding: 3px 10px; border-radius: 4px; font-size: 12px; }
.premium-badge { background: var(--warning); color: white; padding: 3px 10px; border-radius: 4px; font-size: 12px; }

.avatar-upload-btn {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.profile-section {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.profile-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.profile-form .form-group {
    margin-bottom: 16px;
}

.profile-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-form input,
.profile-form textarea,
.profile-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group { flex: 1; min-width: 200px; }

.info-text, .help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.info-text {
    background: var(--bg-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.my-ads-list {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.my-ads-list h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.my-ads-list img {
    object-fit: cover;
}
.flex-2 { flex: 2 !important; }

/* Balance Card */
.balance-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.balance-card > h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-info {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.balance-item {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 140px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.balance-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.premium-features {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.premium-features h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.premium-features ul {
    list-style: none;
    padding: 0;
}

.premium-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-features li i {
    color: var(--success);
    font-size: 13px;
    width: 18px;
}

.bank-info {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.bank-info h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.bank-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.bank-info p strong {
    color: var(--text-primary);
    margin-right: 6px;
}

.balance-form {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.balance-form h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.balance-form .form-group {
    margin-bottom: 14px;
}

.balance-form label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.balance-form input[type="number"],
.balance-form input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.balance-form input[type="number"]:focus {
    outline: none;
    border-color: var(--accent);
}

.balance-form .btn-primary {
    margin-top: 4px;
}

.requests-list {
    margin-top: 0;
}

.requests-list h4 {
    font-size: 16px;
    margin-bottom: 14px;
    color: var(--text-primary);
}
.premium-features ul { list-style: none; }
.premium-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}
.premium-features li i { color: var(--success); margin-right: 8px; }

.bank-info {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.bank-info h4 { margin-bottom: 8px; }
.bank-info p { font-size: 14px; color: var(--text-secondary); margin-bottom: 4px; }

/* User Comment Items */
.user-comment-item {
    background: var(--bg-card);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.user-comment-item p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 8px 0;
}

.user-comment-item .comment-date {
    font-size: 12px;
}

/* Messages */
.tab-content > h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.message-form {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.message-form h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.message-form .form-group {
    margin-bottom: 14px;
}

.message-form label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.message-form input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
}

.message-form input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

/* WhatsApp-style message input */
.msg-input-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.msg-input-wrap:focus-within {
    border-color: var(--accent);
}

.msg-input-wrap textarea {
    width: 100%;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 60px;
}

.msg-bar {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    gap: 6px;
    border-top: 1px solid var(--border-color);
}

.msg-attach {
    display: flex;
    gap: 4px;
}

.msg-attach-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 15px;
    transition: all 0.2s;
}

.msg-attach-btn:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

.msg-attach-btn input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

.msg-attach-preview {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.attach-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 11px;
    color: var(--text-secondary);
}

.attach-tag i {
    color: var(--tag-color, var(--accent));
    font-size: 12px;
}

.attach-tag button {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 13px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}

.msg-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.msg-mic-btn,
.msg-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.msg-mic-btn {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.msg-mic-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

.msg-mic-btn.recording {
    background: #ef4444;
    color: #fff;
    animation: pulse-mic 1s infinite;
}

@keyframes pulse-mic {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.msg-send-btn {
    background: var(--accent);
    color: #fff;
}

.msg-send-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

/* Recording bar */
.record-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
}

.record-dot {
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.record-time {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    font-variant-numeric: tabular-nums;
}

.record-label {
    font-size: 13px;
    color: #991b1b;
    flex: 1;
}

.record-stop {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.record-stop:hover {
    transform: scale(1.1);
}

/* Audio preview */
.audio-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.audio-preview audio {
    flex: 1;
    height: 36px;
}

.audio-remove {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.audio-remove:hover {
    background: #ef4444;
    color: #fff;
}

.messages-list {
    margin-top: 8px;
}

.message-item {
    background: var(--bg-secondary);
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.message-header strong {
    font-size: 15px;
    color: var(--text-primary);
}

.message-header span {
    font-size: 12px;
    color: var(--text-muted);
}

.message-body {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.message-body img,
.message-body video {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.message-body audio {
    width: 100%;
    margin-top: 8px;
}

.admin-reply {
    background: var(--accent-light);
    padding: 14px;
    border-radius: var(--radius-sm);
    margin-top: 14px;
    border-left: 3px solid var(--accent);
}

.admin-reply strong {
    font-size: 13px;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.admin-reply p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.msg-media {
    max-width: 280px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-published, .status-approved { background: #d1fae5; color: #065f46; }
.status-draft, .status-rejected { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }

[data-theme="dark"] .status-published, [data-theme="dark"] .status-approved { background: #064e3b; color: #6ee7b7; }
[data-theme="dark"] .status-draft, [data-theme="dark"] .status-rejected { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .status-pending { background: #78350f; color: #fcd34d; }

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: var(--bg-secondary);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.data-table tr:hover { background: var(--bg-hover); }

.table-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.table-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.no-img {
    font-size: 20px;
    opacity: 0.3;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* === Empty State === */
.no-posts, .empty-state, .empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-posts i, .empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.3;
}

/* === Ad Container === */
.ad-container {
    margin: 12px 0 !important;
    padding: 10px !important;
    text-align: center;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-sizing: border-box !important;
}

.ad-container img {
    max-width: 100% !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.ad-container iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: 140px !important;
    border: none !important;
}

.ad-container div[style*="position: fixed"],
.ad-container div[style*="position: absolute"],
.ad-container div[style*="position:fixed"],
.ad-container div[style*="position:absolute"] {
    position: relative !important;
}

.ad-header { margin-bottom: 12px; }
.ad-footer { margin-top: 12px; }
.ad-sidebar { margin-bottom: 12px; }
.ad-article_top { margin-bottom: 12px; }
.ad-article_middle { margin: 16px 0; }
.ad-article_bottom { margin-top: 12px; }

/* === Footer === */
.main-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul a:hover { color: var(--accent); }

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.social-links a:hover { background: var(--accent); color: white; }

.footer-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-stats i { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* === Scroll to Top === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    z-index: 999;
    transition: transform var(--transition);
}

.scroll-top:hover { transform: translateY(-3px); }

/* === Loading === */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9998;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

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

.cookie-banner button {
    padding: 8px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* === Search Page === */
.search-page-form {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.search-page-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
}

.search-page-form button {
    padding: 14px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    cursor: pointer;
}

/* Mobile Only */
.mobile-only { display: none; }

@media (max-width: 768px) {
    .mobile-only { display: block; }
    .top-bar-right { display: none; }
    .mobile-menu-btn { display: block; }
    .header-search { display: none; }

    .main-nav { display: none; }
    .main-nav.open {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--bg-primary);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-list { flex-direction: column; }

    .main-content .container {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-main { grid-row: auto; }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .single-post {
        padding: 20px;
    }

    .single-post-header h1 {
        font-size: 20px;
    }

    .single-post-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .post-stats {
        margin-left: auto;
        gap: 10px;
        font-size: 12px;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .balance-info {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }

    .data-table {
        font-size: 12px;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

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

    .share-buttons {
        flex-wrap: wrap;
    }

    .social-follow {
        grid-template-columns: 1fr;
    }
}

/* === AD STYLES === */

/* Fade In */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Reklam badge */
.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}
