/* Blog Sayfaları - Ortak CSS */

/* Custom CSS Variables */
:root {
    --primary: #137fec;
    --background-light: #f6f7f8;
    --background-dark: #101922;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-muted: #6b7280;
}

/* Material Symbols Font */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Tailwind Utility Classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .md\:hidden {
        display: none;
    }
}

/* Blog Article Base Styles */
.blog-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* Article Header */
.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-tag {
    background: rgba(19, 127, 236, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-image {
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Prose Styles */
.prose {
    color: var(--text-secondary);
    max-width: none;
    line-height: 1.7;
}

.prose h2 {
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.prose strong {
    color: var(--primary);
    font-weight: 600;
}

.prose ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.prose ul li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.prose ol {
    counter-reset: list-counter;
    padding-left: 0;
    margin: 1.5rem 0;
}

.prose ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    counter-increment: list-counter;
}

.prose ol li::before {
    content: counter(list-counter) ".";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Special Content Boxes */
.info-box {
    background: rgba(19, 127, 236, 0.05);
    border: 1px solid rgba(19, 127, 236, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 0;
}

.warning-box {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.success-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Price Cards */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.price-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(19, 127, 236, 0.15);
}

.price-card h5 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-card ul li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* FAQ Styles */
.faq-container {
    margin: 2rem 0;
}

.faq-item {
    background: rgba(248, 250, 252, 1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item details {
    padding: 1rem;
}

.faq-item details[open] {
    background: rgba(19, 127, 236, 0.05);
}

.faq-item summary {
    cursor: pointer;
    user-select: none;
    outline: none;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: rgba(19, 127, 236, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 127, 236, 0.3);
    color: white;
}

.cta-button-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tag {
    background: rgba(248, 250, 252, 1);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Share Buttons */
.share-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-whatsapp {
    background: #25d366;
}

.share-facebook {
    background: #1877f2;
}

.share-twitter {
    background: #1da1f2;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

.related-posts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: rgba(248, 250, 252, 1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.related-content {
    padding: 1.5rem;
}

.related-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-content h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--primary);
}

.related-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
    }

    .price-card,
    .faq-item,
    .related-card,
    .tag {
        background: rgba(30, 41, 59, 0.8);
        color: var(--text-secondary);
    }

    .info-box {
        background: rgba(19, 127, 236, 0.1);
    }

    .warning-box {
        background: rgba(245, 158, 11, 0.1);
    }

    .success-box {
        background: rgba(16, 185, 129, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-description {
        font-size: 1.125rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .share-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-article {
        padding: 2rem 1rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .prose h2 {
        font-size: 1.375rem;
    }
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.5s ease-out;
}

/* Print Styles */
@media print {

    .share-container,
    .related-posts,
    .cta-button {
        display: none;
    }

    .article-title {
        color: black;
    }

    .prose h2,
    .prose h3 {
        color: black;
    }
}