/* Projeler Eklentisi Stilleri */

.projeler-grid {
    display: grid;
    --desktop-cols: 3; /* Fallback */
    --mobile-cols: 1; /* Fallback */
    grid-template-columns: repeat(var(--desktop-cols), 1fr) !important;
    gap: 30px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .projeler-grid {
        grid-template-columns: repeat(var(--mobile-cols), 1fr) !important;
    }
}

.proje-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 380px; /* Görselin tam çıkması için sabit bir yükseklik */
    z-index: 1;
}


/* Yılan animasyonu için döner arka plan (başlangıçta gizli) */
.proje-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 60%, #4da3ff 90%, #ffffff 100%);
    animation: rotateSnake 2.5s linear infinite; /* Biraz hızlandırdık */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

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

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

.proje-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: absolute;
    inset: 4px; /* Çizgiyi daha belirgin yapmak için 4px pay */
    border-radius: 8px; /* Dış çerçeve 12px, iç çerçeve (12-4) 8px */
    overflow: hidden;
    z-index: 2;
}

.proje-card-link:hover, .proje-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.proje-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.proje-card:hover .proje-card-image {
    transform: scale(1.08);
}

.proje-card-content {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.proje-card:hover .proje-card-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0) 100%);
}

.proje-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4da3ff;
    font-weight: 600;
    margin-bottom: 0;
    display: inline-block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.proje-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    transition: transform 0.4s ease;
}

.proje-meta-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #ddd;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.proje-card:hover .proje-category {
    max-height: 30px;
    margin-bottom: 10px;
    opacity: 1;
}

.proje-card:hover .proje-meta-details {
    max-height: 150px;
    margin-top: 15px;
    opacity: 1;
}

.proje-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proje-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #4da3ff;
}

.proje-excerpt {
    display: none;
}

.proje-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    padding: 0 20px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center !important;
    overflow: hidden;
    transition: all 0.4s ease;
}

.proje-card:hover .proje-read-more {
    max-height: 50px;
    margin-top: 15px;
    padding: 10px 20px;
    opacity: 1;
}

/* Single Post Specific (Eğer tema kendi stilini kullanmazsa temel düzen) */
.single-proje .post-thumbnail {
    margin-bottom: 30px;
}
.single-proje .projeler-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 40px;
}
.single-proje .projeler-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Kategori Listesi Kısa Kod Stilleri */
.proje-kategorileri-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.proje-kategori-button {
    background-color: #f8f9fa;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
}

.proje-kategori-button:hover {
    background-color: #0056b3;
    color: #fff !important;
    border-color: #0056b3;
    text-decoration: none;
}
