/* ===== BLOG STYLES - habilcakir.com.tr ===== */
/* Shared styles for all blog posts */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #3b82f6;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
}

/* ===== Prose Typography ===== */
.prose {
    max-width: 800px;
    margin: 0 auto;
}

.prose h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    color: var(--text-primary);
}

.prose a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.prose a:hover {
    text-decoration: underline;
}

.prose code {
    background: #1e1e2e;
    color: #61dafb;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* ===== Blog Header ===== */
.blog-header {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

/* ===== Content Boxes ===== */
.tip-box {
    background: #0d2818;
    border-left: 4px solid #22c55e;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.warning-box {
    background: #2d1f0d;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.highlight-box {
    background: #1a1a2e;
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.info-box {
    background: #0d1b2a;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

/* ===== Code Block ===== */
.code-block {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block code {
    background: transparent;
    padding: 0;
}

/* ===== Step Box ===== */
.step-box {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.step-number {
    background: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Comparison Table ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ===== Breadcrumb Styles ===== */
.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #9ca3af;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.breadcrumb-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
}

/* ===== Related Posts ===== */
.related-posts-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.related-posts-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-posts-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.related-post-card {
    display: block;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-post-card:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.related-post-inner {
    background: #111111;
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
}

.related-post-category {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-post-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.related-post-card:hover .related-post-arrow {
    background: #3b82f6;
    color: white;
    transform: translateX(4px);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Floating Buttons ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-5px);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .related-posts-header {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .related-posts-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }

    .related-posts-icon i {
        font-size: 0.875rem;
    }

    .related-posts-title h3 {
        font-size: 1.125rem;
    }

    .related-posts-title p {
        font-size: 0.75rem;
    }

    .related-post-inner {
        padding: 1.25rem;
    }

    .related-post-arrow {
        width: 32px;
        height: 32px;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }

    .scroll-top-btn {
        right: 80px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.625rem 0.75rem;
    }
}