/* Karar Arşivi CSS Stilleri - İyileştirilmiş Tasarım */

/* Ana Container */
.karar-arsivi {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Filtre Bölümü */
.karar-filter-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F2F4F7 100%);
    border: 1px solid #F2F4F7;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(26, 43, 76, 0.08);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

/* Arama Kutusu */
.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 14px 50px 14px 18px;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #295EA8;
    box-shadow: 0 0 0 4px rgba(41, 94, 168, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: rgba(0, 124, 186, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.search-icon {
    font-size: 18px;
}

/* Filtre Grupları */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
    position: relative;
}

/* Buton grubu için özel stil */
.filter-group:last-child {
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
}

.filter-group label {
    font-weight: 600;
    color: #1C1C1E;
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Filtre İkonları */
.filter-group label::before {
    font-size: 14px;
    opacity: 0.7;
}

.filter-group[data-filter="kurum"] label::before {
    content: "🏛️";
}

.filter-group[data-filter="konu"] label::before {
    content: "🏷️";
}

.filter-group[data-filter="tarih"] label::before {
    content: "📅";
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 12px 14px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: #295EA8;
    box-shadow: 0 0 0 4px rgba(41, 94, 168, 0.1);
    transform: translateY(-1px);
}

/* Tarih Grup Özel Stilleri */
.date-group {
    min-width: 280px;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-inputs input[type="date"] {
    flex: 1;
}

.date-separator {
    color: #6c757d;
    font-weight: bold;
    font-size: 16px;
}

/* İyileştirilmiş Butonlar */
.filter-button,
.clear-button,
.load-more-button {
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-button {
    background: linear-gradient(135deg, #1A2B4C 0%, #295EA8 100%);
    color: white;
}

.filter-button:hover {
    background: linear-gradient(135deg, #295EA8 0%, #1A2B4C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 94, 168, 0.4);
}

.clear-button {
    background: linear-gradient(135deg, #B3261E 0%, #8B1A10 100%);
    color: white;
    margin-left: 12px;
}

.clear-button:hover {
    background: linear-gradient(135deg, #8B1A10 0%, #B3261E 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 38, 30, 0.4);
}

.load-more-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    margin: 24px auto;
    display: block;
    min-width: 200px;
}

.load-more-button:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Sonuçlar Bölümü */
.karar-results {
    margin-top: 32px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 8px;
}

.results-count {
    font-weight: 600;
    color: #1C1C1E;
    font-size: 16px;
}

.loading-indicator {
    color: #1A2B4C;
    font-style: italic;
    font-weight: 500;
}

/* İyileştirilmiş Karar Grid - Responsive */
.karar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    align-items: stretch;
}

/* Modern Karar Kartları */
.karar-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.karar-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #295EA8;
}

.karar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1A2B4C 0%, #295EA8 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.karar-card:hover::before {
    opacity: 1;
}

/* Kart Header */
.karar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #f1f3f4;
    background: #fafbfc;
}

.karar-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.date-icon {
    font-size: 16px;
    opacity: 0.7;
}

/* İyileştirilmiş Kurum Etiketleri - Sabit Renkler */
.karar-kurum {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Kurum Renkleri - Sabit Palet */
.kurum-aihm {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.kurum-aym {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    color: white;
}

.kurum-bm {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.kurum-yargitay {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
}

.kurum-danistay {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
}

.kurum-diger {
    background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
    color: white;
}

/* Kart İçerik */
.karar-content {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.karar-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.karar-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.karar-title a:hover {
    color: #007cba;
}

.karar-ozet {
    margin-bottom: 16px;
    flex: 1;
}

.karar-ozet p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
    font-size: 14px;
    height: 84px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.karar-konular {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    min-height: 32px;
    align-items: flex-start;
}

.konu-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.konu-tag:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
}

/* Kart Footer */
.karar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.karar-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Link Butonları */
.detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: 120px;
    justify-content: center;
}

.detail-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.detail-link:hover::before {
    left: 100%;
}

.detail-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    filter: brightness(1.1);
}

.external-link {
    background: linear-gradient(135deg, #295EA8 0%, #1A2B4C 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(41, 94, 168, 0.4);
}

.external-link:hover {
    background: linear-gradient(135deg, #1A2B4C 0%, #295EA8 100%);
    box-shadow: 0 8px 30px rgba(41, 94, 168, 0.6);
    filter: brightness(1.1);
}

/* Özet Butonu - Site Renk Paleti */
.summary-btn {
    background: linear-gradient(135deg, #1A2B4C 0%, #295EA8 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 12px rgba(26, 43, 76, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.summary-btn:hover {
    background: linear-gradient(135deg, #295EA8 0%, #1A2B4C 100%) !important;
    box-shadow: 0 6px 20px rgba(41, 94, 168, 0.4) !important;
    filter: brightness(1.1) !important;
    transform: translateY(-1px) scale(1.02) !important;
}

/* Premium Oku Butonu */
.internal-link {
    background: linear-gradient(135deg, #1A2B4C 0%, #121C2B 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 43, 76, 0.4);
}

.internal-link:hover {
    background: linear-gradient(135deg, #295EA8 0%, #1A2B4C 100%);
    box-shadow: 0 8px 30px rgba(26, 43, 76, 0.6);
    filter: brightness(1.1);
}

.link-icon {
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.detail-link:hover .link-icon {
    transform: scale(1.3) rotate(10deg);
    filter: brightness(1.2);
}

/* Özel ikon efektleri */
.summary-btn:hover .link-icon {
    animation: summaryGlow 1.2s ease-in-out infinite;
}

.download-btn:hover .link-icon {
    animation: downloadBounce 0.6s ease-in-out;
}

.external-link:hover .link-icon {
    animation: linkPulse 0.8s ease-in-out;
}

.internal-link:hover .link-icon {
    animation: readFlip 0.8s ease-in-out;
}

@keyframes summaryGlow {
    0%, 100% { 
        transform: scale(1.3) rotate(0deg);
        filter: brightness(1) drop-shadow(0 0 3px rgba(255,255,255,0.5));
    }
    50% { 
        transform: scale(1.4) rotate(-5deg);
        filter: brightness(1.3) drop-shadow(0 0 8px rgba(255,255,255,0.8));
    }
}

@keyframes downloadBounce {
    0%, 100% { transform: scale(1.3) translateY(0) rotate(10deg); }
    50% { transform: scale(1.5) translateY(-3px) rotate(10deg); }
}

@keyframes linkPulse {
    0%, 100% { transform: scale(1.3) rotate(10deg); }
    50% { transform: scale(1.4) rotate(15deg); }
}

@keyframes readFlip {
    0%, 100% { transform: scale(1.3) rotateY(0deg); }
    50% { transform: scale(1.4) rotateY(180deg); }
}

/* Hover Efektli ID Bilgisi */
.karar-meta {
    color: #adb5bd;
    font-size: 11px;
    opacity: 0.4;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.karar-card:hover .karar-meta {
    opacity: 1;
}

/* İyileştirilmiş "Sonuç Bulunamadı" Mesajı */
.no-results {
    text-align: center;
    color: #6c757d;
    padding: 60px 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    font-size: 16px;
    font-weight: 500;
    margin: 24px 0;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
    filter: grayscale(50%);
}

.no-results h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    color: #495057;
}

.no-results p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #6c757d;
}

.no-results-suggestions {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.no-results-suggestions p {
    margin: 8px 0;
    font-size: 14px;
    text-align: left;
    color: #495057;
    padding-left: 16px;
    position: relative;
}

.no-results-suggestions p:first-child {
    margin-top: 0;
}

.no-results-suggestions p:last-child {
    margin-bottom: 0;
}

/* AJAX "Sonuç Bulunamadı" Mesajı */
.ajax-no-results {
    text-align: center;
    color: #6c757d;
    padding: 40px 24px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    border: 2px dashed #ffc107;
    margin: 20px 0;
}

.ajax-no-results::before {
    content: "⚠️";
    display: block;
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.ajax-no-results::after {
    content: "Farklı arama terimleri veya filtreler deneyebilirsiniz.";
    display: block;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .karar-arsivi {
        padding: 16px;
    }
    
    .karar-filter-section {
        padding: 20px;
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-box {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .date-group {
        min-width: auto;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-separator {
        display: none;
    }
    
    /* Grid Layout - Mobile */
    .karar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .karar-header {
        padding: 16px 20px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .karar-footer {
        padding: 12px 20px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    /* Responsive Butonlar - Mobile */
    .karar-actions {
        display: flex;
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    
    .detail-link {
        flex: 1;
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-width: auto !important;
        width: auto !important;
        text-align: center;
        justify-content: center;
    }
    
    .summary-btn {
        flex: 1;
        padding: 10px 16px !important;
        font-size: 13px !important;
        min-width: auto !important;
        width: auto !important;
        text-align: center;
        justify-content: center;
    }
    
    /* Buton metinleri mobilde görünsün */
    .btn-text {
        display: inline !important;
    }
    
    .link-icon {
        display: none; /* İkonları mobilde gizle */
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* Mobil butonlar - yan yana */
    .filter-group:last-child {
        display: flex;
        gap: 12px;
        width: 100%;
    }
    
    .filter-button,
    .clear-button {
        flex: 1;
        margin-left: 0;
        margin-bottom: 8px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .clear-button {
        margin-left: 0;
    }
    
    /* Modal Butonları - Mobile */
    .summary-actions .detail-link {
        padding: 14px 20px !important;
        font-size: 16px !important;
        min-width: 200px !important;
        width: auto !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet - 2 Sütun */
    .karar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet Butonlar */
    .detail-link {
        padding: 10px 14px !important;
        font-size: 12px !important;
        min-width: 100px !important;
        text-align: center;
        justify-content: center;
    }
    
    .summary-btn {
        padding: 10px 14px !important;
        font-size: 12px !important;
        min-width: 100px !important;
        text-align: center;
        justify-content: center;
    }
    
    /* Buton metinleri tablet'te görünsün */
    .btn-text {
        display: inline !important;
    }
    
    .link-icon {
        display: none; /* İkonları tablet'te gizle */
    }
    
    /* Modal Butonları - Tablet */
    .summary-actions .detail-link {
        padding: 12px 24px !important;
        font-size: 15px !important;
        min-width: 180px !important;
    }
}

@media (min-width: 1025px) {
    /* Masaüstü - 3 Sütun */
    .karar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .karar-arsivi {
        padding: 12px;
    }
    
    .karar-card {
        margin: 0;
        border-radius: 12px;
    }
    
    .search-box input[type="text"] {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    /* Küçük mobilde butonlar daha kompakt */
    .detail-link {
        flex: 1;
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: auto !important;
    }
    
    .summary-btn {
        flex: 1;
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: auto !important;
    }
    
    .filter-button,
    .clear-button {
        flex: 1;
        margin-left: 0;
        margin-top: 8px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Küçük mobilde daha kompakt */
    .karar-filter-section {
        padding: 16px;
    }
    
    .karar-content {
        padding: 16px 20px;
    }
    
    .karar-footer {
        padding: 12px 20px 16px;
    }
    
    /* Modal Butonları - Küçük Mobile */
    .summary-actions .detail-link {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-width: 160px !important;
    }
}

/* Loading Animation */
.loading-indicator span {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Fade In Animation */
.karar-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Pulse Effect */
@keyframes hoverPulse {
    0% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
    50% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }
    100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); }
}

.karar-card:hover {
    animation: hoverPulse 0.6s ease-in-out;
}

/* Buton Reset */


.download-btn {
    background: linear-gradient(135deg, #B3261E 0%, #8B1A10 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 12px rgba(179, 38, 30, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.download-btn:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: downloadPulse 1.5s infinite;
}

.download-btn:hover {
    background: linear-gradient(135deg, #8B1A10 0%, #B3261E 100%) !important;
    box-shadow: 0 6px 20px rgba(179, 38, 30, 0.4) !important;
    filter: brightness(1.1) !important;
    transform: translateY(-1px) scale(1.02) !important;
}

@keyframes downloadPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Özet Modal */
.summary-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.summary-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.summary-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.summary-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1A2B4C 0%, #295EA8 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    padding-right: 20px;
    line-height: 1.3;
}

.summary-modal-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.summary-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.summary-modal-body {
    padding: 24px;
}

.summary-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #F2F4F7;
    border-radius: 12px;
}

.summary-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #1A2B4C;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-meta-value {
    font-size: 14px;
    color: #1C1C1E;
    font-weight: 500;
}

.summary-content {
    background: white;
    border: 2px solid #F2F4F7;
    border-radius: 12px;
    padding: 20px;
}

.summary-content h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1A2B4C;
    font-weight: 700;
}

.summary-text {
    color: #1C1C1E;
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

/* Özet Modal PDF Butonu */
.summary-actions {
    margin-top: 20px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #F2F4F7;
}

.summary-actions .detail-link {
    padding: 12px 30px;
    font-size: 14px;
    min-width: 180px;
}

.summary-actions .detail-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 94, 168, 0.3);
}

/* PDF Modal */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.pdf-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 800px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

.pdf-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.pdf-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1C1C1E;
    flex: 1;
    padding-right: 20px;
}

.pdf-modal-close {
    background: #B3261E;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.pdf-modal-close:hover {
    background: #8B1A10;
}

.pdf-modal-body {
    flex: 1;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 8px 8px;
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6c757d;
    font-size: 16px;
}

.pdf-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #F2F4F7;
    border-top: 3px solid #295EA8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pdf-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #dc3545;
    padding: 40px;
}

.pdf-error h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.pdf-error p {
    margin: 0 0 20px 0;
    color: #6c757d;
}

.pdf-error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pdf-error-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pdf-error-btn.download {
    background: #28a745;
    color: white;
}

.pdf-error-btn.download:hover {
    background: #218838;
}

.pdf-error-btn.external {
    background: #007bff;
    color: white;
}

.pdf-error-btn.external:hover {
    background: #0056b3;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive PDF Modal */
@media (max-width: 768px) {
    .pdf-modal-content {
        width: 95%;
        height: 85%;
        margin: 0 auto;
    }
    
    .pdf-modal-header {
        padding: 12px 16px;
    }
    
    .pdf-modal-title {
        font-size: 16px;
        padding-right: 12px;
    }
    
    .pdf-modal-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .pdf-error {
        padding: 20px;
    }
    
    .pdf-error h4 {
        font-size: 16px;
    }
    
    .pdf-error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .pdf-error-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Özet Modal Mobil */
    .summary-modal-content {
        width: 95%;
        max-width: none;
        margin: 20px;
        max-height: 90vh;
    }
    
    .summary-modal-header {
        padding: 16px 20px;
    }
    
    .summary-modal-title {
        font-size: 18px;
        padding-right: 12px;
    }
    
    .summary-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .summary-modal-body {
        padding: 20px;
        overflow-y: auto;
    }
    
    .summary-meta {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .summary-content {
        padding: 16px;
    }
    
    /* Modal içi PDF butonu mobil responsive */
    .summary-actions {
        margin-top: 16px !important;
        padding-top: 16px;
    }
    
    .summary-actions .detail-link {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto;
        padding: 14px 20px !important;
        font-size: 16px !important;
        display: block !important;
    }
} 