/* Page Components CSS - Ana Page Stilleri */

/* Genel Stiller */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a2332;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.content-block {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Widget Stiller */
.widget-container {
    margin-bottom: 40px;
}

.text-widget {
    font-size: 16px;
    line-height: 1.8;
    color: #495057;
}

.text-widget h1, .text-widget h2, .text-widget h3, 
.text-widget h4, .text-widget h5, .text-widget h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.text-widget p {
    margin-bottom: 20px;
}

.text-widget ul, .text-widget ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.text-widget li {
    margin-bottom: 8px;
}

.text-widget blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

/* Resim Stilleri */
.image-widget {
    text-align: center;
    margin: 30px 0;
}

.image-widget img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-widget img:hover {
    transform: scale(1.02);
}

/* Galeri Stilleri */
.gallery-widget {
    margin: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Video Stilleri */
.video-widget {
    margin: 40px 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tablo Stilleri */
.table-widget {
    margin: 40px 0;
    overflow-x: auto;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.responsive-table th {
    font-weight: 600;
    padding: 15px;
    text-align: left;
    background: #f1f3f5;
    color: #2c3e50;
}

/* CMS editör tabloları: satır/header renkleri (inline veya --header-bg) korunsun */
.text-image-content .responsive-table th {
    background: inherit;
    background-color: inherit;
    color: inherit;
}

.text-image-content .responsive-table tr[style*="background"] th {
    background-color: inherit;
    color: inherit;
}

.responsive-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.responsive-table tr:hover {
    background: #f8f9fa;
}

/* Form Stilleri */
.form-widget {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #E31837;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.15);
}

.form-widget .btn-primary {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .content-block {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .responsive-table {
        font-size: 14px;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 10px;
    }
}

.cms-page .page-container {
    max-width: 1200px;
    padding: 32px 20px 24px;
}

.cms-page .page-content {
    margin-bottom: 0;
}

.cms-page .page-body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.cms-page .page-body h2,
.cms-page .page-body h3,
.cms-page .page-body h4 {
    color: #002855;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.cms-page .page-title {
    font-size: 2.25rem;
    color: #1a2332;
}

.cms-page .page-title::after {
    background: linear-gradient(135deg, #E31837, #c71530);
}