/* =========================================
   Project Showcase - Genel Stiller
========================================= */
.ps-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.ps-slider-container {
    margin: 40px 0;
    position: relative;
    padding: 20px 0 50px 0;
}

/* --- Kart Tasarımı --- */
.ps-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ps-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ps-card-img {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    overflow: hidden;
}

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

.ps-card:hover .ps-card-img img {
    transform: scale(1.05);
}

.ps-card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ps-card:hover .ps-card-overlay {
    opacity: 1;
}

.ps-card-overlay span {
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 13px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ps-card:hover .ps-card-overlay span {
    transform: translateY(0);
}

.ps-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ps-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #222;
    font-weight: 700;
    line-height: 1.4;
}

.ps-card-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Uzun yazıları 3 satır ile sınırlandırır */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ps-card-location {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Slider Özel Stilleri --- */
.ps-swiper {
    padding: 10px !important;
}

/* Navigasyon butonlarının diğer içeriklerin üstünde kalabilmesi ve kolay tıklanması için gelişmiş z-index ve arka plan */
.ps-nav-btn {
    color: #0073aa !important;
    z-index: 99 !important; /* Geri butonunun üstüne bir element binmesini engeller */
    background: rgba(255, 255, 255, 0.9);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-nav-btn:hover {
    background: #0073aa;
    color: #fff !important;
}

.ps-nav-btn::after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Sağ ve sol dış kenar ayarı */
.swiper-button-prev {
    left: 10px !important;
}

.swiper-button-next {
    right: 10px !important;
}

.swiper-pagination-bullet-active {
    background: #0073aa !important;
}

/* --- Modal (Popup) Tasarımı --- */
.ps-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

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

.ps-modal-content {
    background-color: #fefefe;
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: psModalFadeIn 0.4s ease forwards;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.ps-modal-close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: color 0.2s;
}

.ps-modal-close:hover {
    color: #ff4757;
}

.ps-modal-header {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.ps-modal-header img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ps-modal-body {
    padding: 30px;
    overflow-y: auto;
}

#ps-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #222;
    font-size: 26px;
    font-weight: 800;
}

.ps-modal-meta-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #0073aa;
}

.ps-meta-item {
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.ps-meta-item:last-child {
    margin-bottom: 0;
}

.ps-meta-item strong {
    color: #111;
    display: inline-block;
    min-width: 130px;
}

.ps-modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .ps-meta-item strong {
        display: block;
        margin-bottom: 3px;
    }
    #ps-modal-title {
        font-size: 22px;
    }
}
