/* VibeFix Blog - Custom Styles */

/* ===== Category Filter ===== */
.category-btn {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-btn:hover {
    color: #00ffa3;
    border-color: rgba(0, 255, 163, 0.3);
}

.category-btn.active {
    background: #00ffa3;
    color: #0a0a0a;
    border-color: #00ffa3;
}

/* ===== Post Cards ===== */
.post-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    border-color: rgba(0, 255, 163, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0, 255, 163, 0.15);
}

.post-card-image {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.post-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 163, 0.1) 0%,
        transparent 50%,
        rgba(0, 255, 163, 0.05) 100%
    );
}

.post-card-image .pattern {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 163, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 163, 0.1) 0%, transparent 50%);
}

.post-card-image .cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #00ffa3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-content {
    padding: 20px;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: white;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
    color: #00ffa3;
}

.post-card-description {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #6b7280;
}

.post-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== Featured Post Card ===== */
.featured-card {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .featured-card {
        grid-template-columns: 1.2fr 1fr;
    }
}

.featured-card:hover {
    border-color: rgba(0, 255, 163, 0.3);
    box-shadow: 0 20px 60px -20px rgba(0, 255, 163, 0.2);
}

.featured-card-image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .featured-card-image {
        aspect-ratio: auto;
        min-height: 280px;
    }
}

.featured-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 163, 0.15) 0%,
        transparent 40%,
        rgba(0, 255, 163, 0.08) 100%
    );
}

.featured-card-image .pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image:
        radial-gradient(circle at 30% 70%, rgba(0, 255, 163, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(0, 255, 163, 0.15) 0%, transparent 50%);
}

.featured-card-image .cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 255, 163, 0.9);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 255, 163, 0.1);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #00ffa3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    width: fit-content;
}

.featured-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.featured-card:hover .featured-card-title {
    color: #00ffa3;
}

.featured-card-description {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* ===== Pagination ===== */
.pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: rgba(0, 255, 163, 0.5);
    color: #00ffa3;
}

.pagination-btn.active {
    background: #00ffa3;
    border-color: #00ffa3;
    color: #0a0a0a;
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== Search Highlight ===== */
.search-highlight {
    background: rgba(0, 255, 163, 0.2);
    color: #00ffa3;
    padding: 0 2px;
    border-radius: 2px;
}

/* ===== Article Page Styles ===== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #00ffa3;
}

.breadcrumb-separator {
    color: #4b5563;
}

/* Article Header */
.article-header {
    max-width: 800px;
    margin: 0 auto;
}

.article-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 255, 163, 0.1);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #00ffa3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: #6b7280;
}

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

/* Article Content */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #d1d5db;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content a {
    color: #00ffa3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    text-decoration: none;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

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

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content strong {
    color: white;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 24px 0;
}

/* Code Blocks */
.article-content pre {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 24px 0;
    overflow-x: auto;
    position: relative;
}

.article-content pre code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e5e7eb;
}

.article-content code:not(pre code) {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: rgba(0, 255, 163, 0.1);
    color: #00ffa3;
    padding: 2px 6px;
    border-radius: 4px;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
    margin-top: 24px;
}

.code-header + pre {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

.code-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.code-copy-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-copy-btn:hover {
    border-color: #00ffa3;
    color: #00ffa3;
}

.code-copy-btn.copied {
    border-color: #00ffa3;
    color: #00ffa3;
}

/* Alert Boxes */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.alert-success {
    background: rgba(0, 255, 163, 0.1);
    border-color: #00ffa3;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.alert-info .alert-title { color: #3b82f6; }
.alert-warning .alert-title { color: #f59e0b; }
.alert-error .alert-title { color: #ef4444; }
.alert-success .alert-title { color: #00ffa3; }

/* Table of Contents */
.toc {
    position: sticky;
    top: 100px;
}

.toc-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    padding: 4px 0;
    padding-left: 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.toc-link:hover {
    color: #00ffa3;
}

.toc-link.active {
    color: #00ffa3;
    border-left-color: #00ffa3;
}

.toc-item-h3 .toc-link {
    padding-left: 24px;
    font-size: 0.75rem;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
}

.tag:hover {
    border-color: rgba(0, 255, 163, 0.5);
    color: #00ffa3;
}

/* Share Buttons */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: rgba(0, 255, 163, 0.5);
    color: #00ffa3;
}

/* Author Card */
.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00ffa3 0%, #00cc82 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .post-nav {
        grid-template-columns: 1fr;
    }
}

.post-nav-item {
    padding: 20px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.post-nav-item:hover {
    border-color: rgba(0, 255, 163, 0.3);
}

.post-nav-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.post-nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-item:hover .post-nav-title {
    color: #00ffa3;
}

/* CTA Card in Sidebar */
.cta-card {
    padding: 24px;
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.1) 0%, rgba(0, 255, 163, 0.05) 100%);
    border: 1px solid rgba(0, 255, 163, 0.2);
    border-radius: 12px;
    text-align: center;
}

.cta-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.cta-card p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

.cta-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #00ffa3;
    color: #0a0a0a;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cta-card-btn:hover {
    background: #00cc82;
}
