/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover,
nav a.active {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.pexels.com/photos/417074/pexels-photo-417074.jpeg') center/cover;
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Content */
.content {
    padding: 3rem 0;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Haber Stilleri */
.haber-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.haber-item:hover {
    transform: translateY(-5px);
}

.haber-resim {
    height: 200px;
    overflow: hidden;
}

.haber-resim img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haber-content {
    padding: 1.5rem;
}

.haber-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.haber-content h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.haber-content h4 a:hover {
    color: #3498db;
}

.haber-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.devam-oku {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.devam-oku:hover {
    color: #2980b9;
}

/* Haber Detay */
.breadcrumb {
    padding: 1rem 0;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.haber-detay {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.haber-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.haber-resim-detay {
    margin: 2rem 0;
    text-align: center;
}

.haber-resim-detay img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
}

.haber-icerik {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.haber-actions {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* Sidebar */
.sidebar {
    padding-left: 2rem;
}

.widget {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Galeri */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.galeri-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.galeri-item:hover img {
    transform: scale(1.1);
}

.galeri-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.galeri-item-large {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.galeri-item-large:hover {
    transform: translateY(-5px);
}

.galeri-item-large img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.galeri-overlay {
    padding: 1rem;
}

.galeri-overlay h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Ziyaretçi Defteri */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.card-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    border-radius: 10px 10px 0 0;
}

.card-header h3 {
    color: #2c3e50;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.mesajlar-liste {
    max-height: 400px;
    overflow-y: auto;
}

.mesaj-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.mesaj-item:last-child {
    border-bottom: none;
}

.mesaj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mesaj-content {
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0 1rem;
}

.radio-player {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-info h4 {
    margin-bottom: 0.5rem;
}

.radio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radio-controls button {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.radio-controls button:hover {
    background: #2980b9;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-control input {
    width: 100px;
}

.footer-content {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #666;
}

.mt-3 {
    margin-top: 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .col-md-4,
    .col-md-6,
    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .radio-player {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .mesaj-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .galeri-grid {
        grid-template-columns: 1fr;
    }
    
    .galeri-container {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}