/* Sayfa Şablonları CSS */

/* Genel Sayfa Stilleri */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover {
    color: #3b82f6;
}

.breadcrumb-item.active {
    color: #1e293b;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #cbd5e1;
}

/* Sayfa İçerik Bölümü */
.page-content-section {
    padding: 40px 0;
    background: #ffffff;
}

.page-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Sayfa Makalesi */
.page-article {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

/* Sayfa Başlığı */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #94a3b8;
    font-size: 12px;
}

.page-categories {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: #c7d2fe;
    color: #312e81;
}

/* Öne Çıkan Görsel */
.featured-image {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sayfa İçeriği */
.page-content {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 40px;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: #1e293b;
    font-weight: 600;
    margin: 32px 0 16px 0;
    line-height: 1.3;
}

.page-content h1 { font-size: 28px; }
.page-content h2 { font-size: 24px; }
.page-content h3 { font-size: 20px; }
.page-content h4 { font-size: 18px; }
.page-content h5 { font-size: 16px; }
.page-content h6 { font-size: 14px; }

.page-content p {
    margin: 0 0 16px 0;
}

.page-content ul,
.page-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.page-content li {
    margin: 8px 0;
}

.page-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 16px 20px;
    margin: 24px 0;
    font-style: italic;
    color: #475569;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-content th,
.page-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.page-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.page-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-content a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.page-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.page-content pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.page-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Sayfa Alt Bilgileri */
.page-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
    margin-top: 40px;
}

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 32px;
}

/* Sosyal Medya Paylaşım */
.social-share h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: #6b7280; }

.share-btn.facebook:hover { background: #166fe5; }
.share-btn.twitter:hover { background: #1a91da; }
.share-btn.linkedin:hover { background: #095ba8; }
.share-btn.whatsapp:hover { background: #20ba5a; }
.share-btn.copy-link:hover { background: #4b5563; }

/* Sayfa Araçları */
.page-utilities {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border-color: #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #9ca3af;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Sayfa İstatistikleri */
.page-stats {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.text-muted {
    color: #9ca3af;
    font-size: 13px;
}

/* Yan Menü */
.page-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: #3b82f6;
    font-size: 16px;
}

.widget-content p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

/* Hızlı Linkler */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin: 0;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.quick-links a:hover {
    color: #3b82f6;
}

.quick-links a i {
    color: #94a3b8;
    width: 16px;
    font-size: 12px;
}

.quick-links li:last-child a {
    border-bottom: none;
}

/* Destek Widget */
.support-buttons {
    display: flex;
    gap: 8px;
}

.support-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.support-btn.phone {
    background: #3b82f6;
    color: white;
}

.support-btn.phone:hover {
    background: #2563eb;
}

.support-btn.whatsapp {
    background: #25d366;
    color: white;
}

.support-btn.whatsapp:hover {
    background: #20ba5a;
}

/* Tam Genişlik Şablonu */
.page-template-full-width .page-wrapper {
    grid-template-columns: 1fr;
}

.page-template-full-width .page-sidebar {
    display: none;
}

/* Yan Menülü Şablon */
.page-template-sidebar .page-wrapper {
    grid-template-columns: 300px 1fr;
}

/* Landing Page Şablonu */
.page-template-landing .breadcrumb-section {
    display: none;
}

.page-template-landing .page-content-section {
    padding: 0;
}

.page-template-landing .page-wrapper {
    grid-template-columns: 1fr;
    max-width: none;
}

.page-template-landing .page-article {
    border-radius: 0;
}

.page-template-landing .page-header {
    text-align: center;
    padding: 60px 0 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 0;
    border-bottom: none;
}

.page-template-landing .page-title {
    color: white;
    font-size: 48px;
    margin-bottom: 16px;
}

.page-template-landing .page-meta {
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.page-template-landing .page-content {
    padding: 60px 0;
}

.page-template-landing .page-sidebar {
    display: none;
}

/* Responsive Tasarım */
@media (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .page-template-sidebar .page-wrapper {
        grid-template-columns: 1fr;
    }
    
    .page-sidebar {
        position: static;
        order: -1;
    }
    
    .page-actions {
        flex-direction: column;
        gap: 24px;
    }
    
    .social-share,
    .page-utilities {
        width: 100%;
    }
    
    .page-utilities {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-content-section {
        padding: 24px 0;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-template-landing .page-title {
        font-size: 32px;
    }
    
    .page-template-landing .page-header {
        padding: 40px 0 32px 0;
    }
    
    .page-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-categories {
        width: 100%;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .support-buttons {
        flex-direction: column;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-content-section {
        padding: 16px 0;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .page-template-landing .page-title {
        font-size: 28px;
    }
    
    .page-content {
        font-size: 15px;
    }
    
    .breadcrumb-section {
        padding: 8px 0;
    }
    
    .sidebar-widget {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    .share-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Print Stilleri */
@media print {
    .breadcrumb-section,
    .page-sidebar,
    .page-footer {
        display: none !important;
    }
    
    .page-wrapper {
        grid-template-columns: 1fr !important;
    }
    
    .page-content-section {
        padding: 0 !important;
    }
    
    .page-article {
        box-shadow: none !important;
        border: none !important;
    }
    
    .page-content {
        color: #000 !important;
    }
    
    .page-content a {
        color: #000 !important;
        text-decoration: underline !important;
    }
}

/* Lazy Loading Görseller */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Seçim Rengi */
::selection {
    background: #3b82f6;
    color: white;
}

::-moz-selection {
    background: #3b82f6;
    color: white;
}

/* Focus Stilleri */
.btn:focus,
.share-btn:focus,
.support-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-article {
    animation: fadeInUp 0.6s ease-out;
}

.sidebar-widget {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

/* Özel Scrollbar */
.page-content::-webkit-scrollbar {
    width: 6px;
}

.page-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.page-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.page-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}