/* ============================================
   DERNEK SİTESİ - ANA STİL DOSYASI
   ============================================ */

:root {
    --primary-color: #BD2740;
    --primary-dark: #3a7bc8;
    --secondary-color: #e74c3c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #dddddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   ÜST BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, #bd2740 0%, #bd2740 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.welcome-text {
    color: #4ecdc4;
    font-weight: 600;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.logout-link {
    color: #ff6b6b !important;
}

.password-link {
    color: #f39c12 !important;
}

/* ============================================
   ANA HEADER
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 800;
}

.logo img {
    max-height: 60px;
}

.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav a {
    padding: 12px 18px;
    font-weight: 600;
    color: var(--text-color);
    border-radius: var(--radius);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* ============================================
   ANA İÇERİK DÜZENİ
   ============================================ */
.main-content {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 300px;
    gap: 25px;
}
/* ============================================
   SİDEBAR STİLLERİ
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-title {
    background: #bd2740;
    color: var(--white);
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
    padding-left: 25px;
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.sidebar-menu a:hover i {
    color: var(--white);
}

/* Duyurular */
.announcements-list {
    padding: 10px;
}

.announcement-item {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-color);
}

.announcement-item:hover {
    background: #ffc107;
    color: #000;
}

.announcement-item i {
    margin-right: 8px;
    color: #856404;
}

/* Kullanıcı İşlemleri */
.user-actions {
    padding: 15px;
}

.action-link {
    display: block;
    padding: 12px 15px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.action-link.password {
    background: #fff3cd;
    color: #856404;
}

.action-link.password:hover {
    background: #ffc107;
    color: #000;
}

.action-link.logout {
    background: #f8d7da;
    color: #721c24;
}

.action-link.logout:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Köşe Yazıları */
.articles-list {
    padding: 10px;
}

.article-item {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
}

.article-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Ziyaretçi Sayacı */
.visitor-counter {
    background: linear-gradient(135deg, #e74c3c 0%, #764ba2 100%);
}

.visitor-counter .sidebar-title {
    background: rgba(0,0,0,0.2);
}

.counter-stats {
    padding: 15px;
    color: var(--white);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin-bottom: 8px;
}

.stat-item.total {
    background: rgba(255,255,255,0.2);
    font-weight: 700;
}

.stat-label {
    opacity: 0.9;
}

.stat-value {
    font-weight: 700;
}

/* ============================================
   ANA KOLON - HABER VE İÇERİK
   ============================================ */
.main-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Reklam Banner */
.ad-banner {
    background: var(--primary-color);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner.placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.ad-banner.placeholder span {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ad-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Haber Bölümü */
.news-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.section-title {
    font-size: 20px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

/* ============================================
   HABER SLIDER
   ============================================ */
.news-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-slider {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

.news-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.news-slide {
    min-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

.news-card-slider {
    display: flex;
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 280px;
}

.news-image-slider {
    width: 45%;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.news-image-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.news-card-slider:hover .news-image-slider img {
    transform: scale(1.05);
}

.news-image-slider.no-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 15px;
}

.news-image-slider .news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.news-content-slider {
    width: 55%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content-slider h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content-slider h3 a {
    color: var(--text-color);
    transition: var(--transition);
}

.news-content-slider h3 a:hover {
    color: var(--primary-color);
}

.news-content-slider p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.news-content-slider .news-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: auto;
}

.news-content-slider .news-meta i {
    margin-right: 6px;
    color: var(--primary-color);
}

/* Slider Butonları */
.slider-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-btn:active {
    transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

/* Responsive Slider */
@media (max-width: 768px) {
    .news-card-slider {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-image-slider {
        width: 100%;
        min-height: 200px;
    }
    
    .news-content-slider {
        width: 100%;
        padding: 20px;
    }
    
    .news-content-slider h3 {
        font-size: 18px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

.news-category {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-category.duyuru { background: #fff3cd; color: #856404; }
.news-category.haber { background: #d1ecf1; color: #e74c3c; }
.news-category.bizden_haber { background: #d4edda; color: #155724; }
.news-category.vefat { background: #f8d7da; color: #721c24; }
.news-category.dugun { background: #e2d5f1; color: #5a32a3; }
.news-category.genel { background: #e9ecef; color: #495057; }

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
}

.news-meta i {
    margin-right: 5px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-more:hover {
    background: var(--primary-dark);
}

/* Sosyal Medya */
.social-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    text-align: center;
}

.social-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
}

.social-btn.facebook { background: #e74c3c; }
.social-btn.twitter { background: #e74c3c; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-btn.youtube { background: #ff0000; }
.social-btn.whatsapp { background: #25d366; }

/* Alt Linkler */
.bottom-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.useful-links, .guestbook-link {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.useful-links h3, .guestbook-link h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.useful-links ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.useful-links ul li:last-child {
    border-bottom: none;
}

.useful-links a {
    color: var(--text-color);
    font-size: 14px;
}

.useful-links a:hover {
    color: var(--primary-color);
}

.useful-links a i {
    margin-right: 8px;
    color: var(--primary-color);
}

.guestbook-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ============================================
   BUTONLAR
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    margin: 10px 15px;
    width: calc(100% - 30px);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: var(--secondary-color);
}

.btn-danger:hover {
    background: #c0392b;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #e74c3c 100%);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-info h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-info p {
    margin-bottom: 8px;
    opacity: 0.9;
    font-size: 14px;
}

.footer-info p i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    opacity: 0.7;
    font-size: 14px;
}

/* ============================================
   FORM STİLLERİ
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* ============================================
   SAYFA İÇERİK ALANI
   ============================================ */
.page-content {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.page-title {
    font-size: 24px;
    color: var(--primary-color);
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 25px;
}

/* ============================================
   ALERT MESAJLARI
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error, .alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* ============================================
   TABLO STİLLERİ
   ============================================ */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* ============================================
   RESPONSIVE TASARIM
   ============================================ */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr 260px;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar-left {
        order: 2;
    }

    .main-column {
        order: 1;
    }

    .sidebar-right {
        order: 3;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 15px;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .main-header .container {
        flex-wrap: wrap;
    }

    .bottom-links {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-bar-left, .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo h1 {
        font-size: 18px;
    }

    .section-title {
        font-size: 18px;
    }

    .page-content {
        padding: 20px;
    }
}
