/* ========== BLOG PAGE ========== */
.blog-page {
    padding: 5rem 0;
    min-height: 70vh;
}

.blog-container {
    max-width: 1280px;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-description {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #3b82f6;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-date {
    font-size: 0.875rem;
    color: #64748b;
}

.blog-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: #1e293b;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
}

.blog-read-more svg {
    transition: transform 0.3s;
}

.blog-card:hover .blog-read-more svg {
    transform: translateX(4px);
}

.no-posts {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-size: 1.125rem;
    grid-column: 1 / -1;
}

/* ========== SINGLE POST PAGE ========== */


.post-container {
    max-width: 1200px;
}

.post-header {
    margin-bottom: 3rem;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #dbeafe;
    color: #3b82f6;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.post-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: #64748b;
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 2.5rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.post-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.post-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.post-content a:hover {
    color: #2563eb;
}

.post-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
    color: #475569;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.post-content img {
    border-radius: 1rem;
    margin: 2rem 0;
}

/* ========== 404 PAGE ========== */
.error-404-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.error-container {
    max-width: 600px;
    margin: 0 auto;
}

.error-card {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    margin-bottom: 2rem;
    color: #dc2626;
}

.error-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.error-description {
    font-size: 1.0625rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.error-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.error-button.primary {
    background: #3b82f6;
    color: white;
}

.error-button.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.error-button.secondary {
    background: #f1f5f9;
    color: #1e293b;
}

.error-button.secondary:hover {
    background: #e2e8f0;
}

.error-search {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.search-label {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.error-search form {
    display: flex;
    gap: 0.5rem;
}

.error-search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.error-search button {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.error-search button:hover {
    background: #2563eb;
}

/* ========== VIDEO SUBSCRIPTION SECTION ========== */
.video-content-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.video-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.video-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.video-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.video-content p {
    margin-bottom: 1.25rem;
}

.video-content ul,
.video-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.video-content li {
    margin-bottom: 0.5rem;
}

.video-subscription-section {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid #e2e8f0;
}

.subscription-header {
    text-align: center;
    margin-bottom: 2rem;
}

.subscription-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subscription-subtitle {
    font-size: 1.125rem;
    color: #64748b;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.subscription-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    position: relative;
    transition: all 0.3s;
}

.subscription-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.subscription-card.popular {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-header {
    margin-bottom: 1.5rem;
}

.plan-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-desc {
    color: #64748b;
    font-size: 0.95rem;
}

.plan-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
}

.price-period {
    color: #64748b;
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #475569;
}

.plan-features li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    stroke: #3b82f6;
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #3b82f6;
    color: white;
    text-align: center;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.plan-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.subscription-card.popular .plan-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========== RELATED SECTION ========== */
.related-section {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid #e2e8f0;
}

.related-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-card {
    display: block;
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-video {
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}

.related-video:not(.ratio-1-1):not(.ratio-9-16) {
    aspect-ratio: 9 / 16;
}

.related-video.ratio-9-16 {
    aspect-ratio: 9 / 16;
}

.related-video.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.related-video video,
.related-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    padding: 1rem;
}

.related-video-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.related-price {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.related-btn {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    background: #3b82f6;
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.related-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.related-video-link {
    display: block;
}

/* ========== RESPONSIVE NEW PAGES ========== */
@media (max-width: 1024px) {
    .subscription-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .subscription-title {
        font-size: 1.75rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== DOWNLOAD BUTTON ANIMATIONS ========== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

.download-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========== DASHBOARD SUBSCRIPTION TAB STYLES ========== */
.subscription-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.subscription-status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.subscription-status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.subscription-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
}

.subscription-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.subscription-footer-note {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.danger-card {
    border: 2px solid #fee2e2 !important;
    background: #fef2f2 !important;
}

.danger-card .payment-title {
    color: #dc2626;
}

.payment-description {
    font-size: 0.875rem;
    color: #64748b;
    margin: 1rem 0;
    line-height: 1.6;
}

.cancel-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-badge.green {
    background: #d1fae5;
    color: #065f46;
}

/* ========== SETTINGS MESSAGES ========== */
.settings-success-message,
.settings-error-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.settings-success-message {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #a7f3d0;
}

.settings-error-message {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

.settings-success-message svg,
.settings-error-message svg {
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SETTINGS SECTIONS ========== */
.settings-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
}

.settings-divider {
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 0%, transparent 100%);
    margin: 2.5rem 0;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.settings-save-button.secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.settings-save-button.secondary:hover {
    background: #3b82f6;
    color: white;
}

.subscription-manage-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subscription-manage-button:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

/* ========== AUTHOR BOX ========== */
.author-box {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 3rem;
    margin: 4rem 0 2rem 0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.3s;
}

.author-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.author-box-avatar {
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.author-box-title {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-box-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 1.5rem 0;
}

.author-box-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-box-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.author-box-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.author-box-link svg {
    transition: transform 0.3s;
}

.author-box-link:hover svg {
    transform: translateX(4px);
}

/* Responsive author box */
@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        align-items: center;
    }
    
    .author-box-name {
        font-size: 1.5rem;
    }
    
    .author-box-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .author-box-social {
        justify-content: center;
    }
}

/* ========== CATEGORY ARCHIVE PAGE ========== */
.category-archive .blog-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}

.category-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.category-badge-large svg {
    flex-shrink: 0;
}

/* Category Navigation */
.category-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    height: 6px;
}

.category-nav::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.category-nav::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.category-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-nav-item:hover {
    border-color: #cbd5e1;
    color: #3b82f6;
    background: #f8fafc;
}

.category-nav-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
}

.category-nav-item svg {
    flex-shrink: 0;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-nav-item.active .category-count {
    background: rgba(255, 255, 255, 0.25);
}

.category-nav-item:hover .category-count {
    background: rgba(59, 130, 246, 0.15);
}

/* No posts message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 1.5rem;
    border: 2px dashed #e2e8f0;
}

.no-posts-message svg {
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.no-posts-message h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.no-posts-message p {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 2rem 0;
}

.back-to-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
}

.back-to-blog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

/* Responsive category page */
@media (max-width: 768px) {
    .category-nav {
        gap: 0.75rem;
    }
    
    .category-nav-item {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .category-badge-large {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .no-posts-message {
        padding: 3rem 1.5rem;
    }
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f1f5f9;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8fafc;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
}

.pagination .dots {
    border: none;
    pointer-events: none;
    color: #cbd5e1;
}

.pagination a svg {
    flex-shrink: 0;
}

/* Responsive pagination */
@media (max-width: 640px) {
    .pagination {
        gap: 0.375rem;
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
        min-width: 44px;
        justify-content: center;
    }
}

/* ========== ARCHIVE PAGE ========== */
.archive-page .blog-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}

.archive-back-nav {
    margin-bottom: 2rem;
}

.archive-back-nav .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.archive-back-nav .back-link:hover {
    color: #3b82f6;
    gap: 0.75rem;
}

.archive-back-nav .back-link svg {
    transition: transform 0.3s;
}

.archive-back-nav .back-link:hover svg {
    transform: translateX(-4px);
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.875rem 1.25rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #3b82f6;
}

.breadcrumbs span {
    color: #1e293b;
    font-weight: 600;
}

.breadcrumbs svg {
    flex-shrink: 0;
    color: #cbd5e1;
}

/* ========== RELATED POSTS ========== */
.related-posts-section {
    margin: 4rem 0 3rem 0;
}

.related-posts-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 2rem 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: block;
    text-decoration: none;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.related-post-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Responsive related posts */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .related-posts-title {
        font-size: 1.5rem;
    }
    
    .breadcrumbs {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========== VERIFICATION PAGE ========== */
.verify-icon {
    text-align: center;
    margin-bottom: 20px;
}

.verify-icon svg {
    stroke: #3b82f6;
    width: 64px;
    height: 64px;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    transition: all 0.2s;
}

.code-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.code-input:valid {
    border-color: #10b981;
}

.resend-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.resend-section p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 10px;
}

.resend-link {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
}

.resend-link:hover {
    color: #2563eb;
}

.auth-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.auth-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .code-inputs {
        gap: 6px;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
}

