/* Ulusal Network Eklenti Stilleri */

.ulusal-network-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tab Navigasyonu */
.ulusal-network-tabs {
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 12px;
    padding: 8px;
}

.tab-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tab-item {
    margin: 0;
}

.tab-item a {
    display: block;
    padding: 12px 20px;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.tab-item.active a {
    background: white;
    color: #374151;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab-item a:hover {
    background: rgba(255,255,255,0.7);
    color: #374151;
    border-color: #d1d5db;
}

/* Tab İçerikleri */
.tab-content-wrapper {
    position: relative;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* İlan Grid */
.ilan-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.ilan-grid-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 -20px;
    padding: 0 20px;
    width: 100%;
}

.ilan-grid-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 10px 0;
    width: 100%;
    transform: translateX(0);
    flex-wrap: nowrap;
}

.ilan-grid-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ilan-grid-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ilan-grid-nav.prev {
    left: -20px;
}

.ilan-grid-nav.next {
    right: -20px;
}

.ilan-grid-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ilan-grid-nav .dashicons {
    font-size: 18px;
    color: #6b7280;
}

/* Responsive grid */
@media (max-width: 1400px) {
    .ilan-card {
        width: calc(25% - 15px);
        min-width: 180px;
        height: 380px;
    }
}

@media (max-width: 1200px) {
    .ilan-card {
        width: calc(33.333% - 14px);
        min-width: 160px;
        height: 360px;
    }
}

@media (max-width: 900px) {
    .ilan-card {
        width: calc(50% - 10px);
        min-width: 140px;
        height: 340px;
    }
}

@media (max-width: 600px) {
    .ilan-card {
        width: calc(100% - 10px);
        min-width: 120px;
        height: 320px;
    }
}

/* İlan Kartları */
.ilan-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    width: calc(20% - 16px);
    min-width: 200px;
    height: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.ilan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #d1d5db;
}

.ilan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.ilan-header {
    background: #f8fafc;
    color: #374151;
    padding: 15px;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.ilan-baslik {
    margin: 0;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.3;
    height: 3.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.ilan-actions {
    position: absolute;
    top: 15px;
    right: 15px;
}

.toggle-visibility {
    background: rgba(107, 114, 128, 0.1);
    border: none;
    color: #6b7280;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-visibility:hover {
    background: rgba(107, 114, 128, 0.2);
    transform: scale(1.05);
}

.toggle-visibility .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* İlan Gövdesi */
.ilan-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Taziye Resmi */
.taziye-resim {
    text-align: center;
    margin-bottom: 10px;
}

.taziye-resim img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Kişisel Bilgiler */
.kisisel-bilgi,
.vefat-bilgi {
    margin-bottom: 8px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007cba;
}

.bilgi-item {
    margin-bottom: 6px;
    font-size: 0.75em;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bilgi-item:last-child {
    margin-bottom: 0;
}

.bilgi-item strong {
    color: #495057;
    margin-right: 8px;
}

/* Taziye Detayı */
.taziye-detay {
    margin-top: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detay-ozet {
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 8px;
    font-size: 0.8em;
    height: 5.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.detay-tamami {
    color: #495057;
    line-height: 1.6;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* İlan Bilgileri */
.ilan-bilgi {
    margin-bottom: 15px;
}

.ilan-aciklama {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ilan-resim {
    text-align: center;
    margin-bottom: 10px;
}

.ilan-resim img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* İlan Alt Kısmı */
.ilan-footer {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.detay-btn {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 11px;
    transition: all 0.2s ease;
    height: 36px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.detay-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.detay-btn.active {
    background: #6c757d;
}

/* Boş İçerik */
.no-content {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px 20px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ulusal-network-container {
        padding: 15px;
    }
    
    .tab-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-item a {
        border-radius: 8px;
        margin-bottom: 5px;
        text-align: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .ilan-grid {
        gap: 15px;
        padding: 5px 0;
    }
    
    .ilan-grid-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .ilan-grid-wrapper {
        gap: 15px;
    }
    
    .ilan-grid-nav {
        width: 35px;
        height: 35px;
    }
    
    .ilan-grid-nav.prev {
        left: -17px;
    }
    
    .ilan-grid-nav.next {
        right: -17px;
    }
    
    .ilan-header {
        padding: 12px;
    }
    
    .ilan-baslik {
        font-size: 0.8em;
        padding-right: 50px;
        height: 3.6em;
    }
    
    .ilan-body,
    .ilan-footer {
        padding: 12px;
    }
    
    .bilgi-item {
        font-size: 0.7em;
        height: 2.6em;
    }
    
    .detay-ozet {
        font-size: 0.75em;
        height: 5.2em;
    }
    
    .detay-btn {
        font-size: 10px;
        height: 32px;
        padding: 6px 12px;
    }
    
    .taziye-resim img,
    .ilan-resim img {
        max-width: 70px;
        max-height: 70px;
    }
}

@media (max-width: 480px) {
    .ulusal-network-container {
        padding: 10px;
    }
    
    .tab-nav {
        gap: 3px;
    }
    
    .tab-item a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .ilan-grid {
        gap: 10px;
    }
    
    .ilan-grid-container {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .ilan-grid-wrapper {
        gap: 10px;
    }
    
    .ilan-grid-nav {
        width: 30px;
        height: 30px;
    }
    
    .ilan-grid-nav.prev {
        left: -15px;
    }
    
    .ilan-grid-nav.next {
        right: -15px;
    }
    
    .ilan-header {
        padding: 10px;
    }
    
    .ilan-baslik {
        font-size: 0.75em;
        height: 3.3em;
    }
    
    .ilan-body,
    .ilan-footer {
        padding: 10px;
    }
    
    .bilgi-item {
        font-size: 0.65em;
        height: 2.4em;
    }
    
    .detay-ozet {
        font-size: 0.7em;
        height: 4.8em;
    }
    
    .detay-btn {
        width: 100%;
        padding: 8px;
        font-size: 9px;
        height: 30px;
    }
    
    .taziye-resim img,
    .ilan-resim img {
        max-width: 60px;
        max-height: 60px;
    }
}

/* Loading Animasyonu */
.ulusal-network-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.ulusal-network-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    border-top-color: #007cba;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hata Mesajları */
.ulusal-network-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Başarı Mesajları */
.ulusal-network-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
}

/* Modal Stilleri */
.ulusal-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.ulusal-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ulusal-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.ulusal-modal-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.ulusal-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ulusal-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.ulusal-modal-body {
    padding: 20px;
}

.ulusal-modal-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

/* Navigasyon Butonları */
.ulusal-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.ulusal-nav-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ulusal-nav-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.ulusal-nav-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.ulusal-nav-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.modal-counter {
    font-weight: 600;
    color: #495057;
    font-size: 1.1em;
    padding: 8px 16px;
    background: #e9ecef;
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .ulusal-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .ulusal-modal-header {
        padding: 15px;
    }
    
    .ulusal-modal-title {
        font-size: 1.3em;
        padding-right: 50px;
    }
    
    .ulusal-modal-body,
    .ulusal-modal-footer {
        padding: 15px;
    }
}
