@charset "utf-8";
/* CSS Document */
:root { --primary-color: #d32f2f; --dark-color: #212121; --light-color: #f5f5f5; --border-color: #e0e0e0; }
    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
    body { background-color: var(--light-color); color: var(--dark-color); line-height: 1.6; }
    header { background-color: #fff; border-bottom: 3px solid var(--primary-color); padding: 15px; text-align: center; }
    .logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-transform: uppercase; }
    .logo span { color: var(--dark-color); }
    
    .container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }

    /* Filtreleme Form Tasarımı */
    .filter-section { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 25px; }
    .filter-form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 15px; align-items: flex-end; }
    @media (max-width: 992px) { .filter-form { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 600px) { .filter-form { grid-template-columns: 1fr; } }

    .filter-group { display: flex; flex-direction: column; }
    .filter-group label { font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #555; }
    .filter-group input, .filter-group select { padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; outline: none; transition: 0.2s; height: 42px; background-color: #fff; color: #212121; }
    .filter-group input:focus, .filter-group select:focus { border-color: var(--primary-color); }
    
    .btn-filter { background-color: var(--primary-color); color: white; border: none; padding: 0 25px; height: 42px; border-radius: 4px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s; }
    .btn-filter:hover { background-color: #b71c1c; }
    .btn-reset { background-color: #757575; color: white; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 0 15px; height: 42px; border-radius: 4px; font-size: 14px; }

    /* Liste Bölümü */
    .list-section { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 30px; }
    .section-title { font-size: 22px; margin-bottom: 25px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-color); font-weight: 700; }

    .grid-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    @media (max-width: 992px) { .grid-list { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 600px) { .grid-list { grid-template-columns: 1fr; } }

    .ilan-card { border: 1px solid var(--border-color); border-radius: 6px; padding: 15px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; transition: 0.2s; min-height: 190px; }
    .ilan-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.08); border-color: var(--primary-color); }
    .ilan-header-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
    .ilan-badge { background-color: #efebe9; color: #5d4037; font-size: 11px; font-weight: bold; padding: 4px 8px; border-radius: 3px; text-transform: uppercase; }
    
    .gorsel-badge { background-color: #e8f5e9; color: #2e7d32; font-size: 11px; font-weight: bold; padding: 4px 8px; border-radius: 3px; }
    
    .ilan-no-text { font-size: 11px; color: #757575; font-weight: 600; margin-top: 5px; display: block; }
    .ilan-title { font-size: 14px; font-weight: 700; min-height: 44px; margin-bottom: 15px; color: var(--dark-color); line-height: 1.4; text-transform: uppercase; }
    
    .ilan-footer { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 12px; font-size: 12px; color: #757575; align-items: center; }
    .official-tag { color: var(--primary-color); font-weight: bold; }
    
    .gorsel-link-btn { background-color: #0288d1; color: white !important; text-decoration: none; padding: 5px 10px; border-radius: 4px; font-weight: bold; font-size: 11px; display: inline-flex; align-items: center; gap: 4px; transition: background 0.2s; cursor: pointer; border: none; }
    .gorsel-link-btn:hover { background-color: #01579b; }
    
    /* Sayfalama (Pagination) */
    .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; padding-top: 15px; border-top: 1px solid var(--border-color); }
    .pagination a { color: var(--dark-color); padding: 8px 14px; text-decoration: none; border: 1px solid var(--border-color); border-radius: 4px; font-size: 14px; font-weight: 600; transition: 0.2s; }
    .pagination a:hover, .pagination a.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
    .pagination .disabled { color: #ccc; border-color: #eee; cursor: not-allowed; padding: 8px 14px; font-size: 14px; }
    
    .no-data { text-align: center; color: #757575; padding: 50px 0; font-size: 16px; width: 100%; grid-column: 1 / -1; }

    /* POPUP / MODAL WEB STİL TANIMLARI */
    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 9999; padding: 20px; transition: opacity 0.3s; }
    .modal-box { background: #fff; width: 100%; max-width: 800px; max-height: 90vh; border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.3); animation: modalAnim 0.3s ease-out; }
    @keyframes modalAnim { from { transform: translateY(-3px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    
    .modal-header { padding: 15px 20px; background: #fff; border-bottom: 2px solid var(--primary-color); display: flex; justify-content: space-between; align-items: center; }
    .modal-header h3 { font-size: 16px; font-weight: bold; color: var(--dark-color); text-transform: uppercase; }
    .modal-close { font-size: 24px; color: #757575; cursor: pointer; background: none; border: none; font-weight: bold; line-height: 1; }
    .modal-close:hover { color: var(--primary-color); }
    
    .modal-body { padding: 20px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.6; }
    .modal-meta-row { display: flex; justify-content: space-between; font-size: 12px; color: #757575; font-weight: 600; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
    
    .modal-text { white-space: pre-line; color: #333; margin-bottom: 20px; border-bottom: 1px dashed var(--border-color); padding-bottom: 15px; }
    .modal-image-wrap { text-align: center; background: #f9f9f9; padding: 15px; border-radius: 4px; border: 1px solid var(--border-color); }
    .modal-image-wrap img { max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    .modal-pdf-link { display: inline-flex; align-items: center; gap: 8px; background: #2e7d32; color: white; padding: 10px 18px; text-decoration: none; border-radius: 4px; font-weight: bold; margin-top: 10px; }
    .modal-pdf-link:hover { background: #2e7d32; }
