@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Projeler Eklentisi Stilleri */

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

@media (min-width: 992px) {
    .projeler-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .projeler-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

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

.proje-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    aspect-ratio: 16 / 10.5; /* 816x533 yatay görsel oranına tam uyum */
    min-height: 270px;
    max-height: 320px;
    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: 1.5px; /* Çok zarif ve ince çizgi için 1.5px pay */
    border-radius: 10.5px;
    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-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    opacity: 1;
    max-height: 120px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.proje-card:hover .proje-title {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    transform: translateY(-10px);
}

.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 cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.proje-card:hover .proje-meta-details {
    max-height: 200px;
    margin-top: 10px;
    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;
}

/* Info Blocks Styling (Blue Rounded Header Badges) */
.proje-single-info-blocks {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
}

.proje-info-block {
    margin-bottom: 5px;
}

.proje-info-title {
    background-color: #4a7ccf;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    line-height: 1.3;
}

.proje-info-list {
    list-style-type: disc;
    padding-left: 30px;
    margin: 0 0 10px 0;
}

.proje-info-list li {
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 4px;
    line-height: 1.5;
}

.proje-info-content {
    padding-left: 10px;
    font-size: 1rem;
    color: #222222;
    line-height: 1.7;
}

.proje-info-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.proje-info-content li {
    font-weight: 700;
    color: #111111;
    margin-bottom: 6px;
}

.proje-info-content p {
    margin-bottom: 10px;
    font-weight: 600;
    color: #111111;
}

/* Kategori Tab Stilleri */
.projeler-tabs-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 35px 0;
}

.proje-tab-btn {
    background: #f1f3f7;
    border: 2px solid #cbd5e1;
    color: #334155;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    outline: none;
}

.proje-tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-2px);
}

.proje-tab-btn.active {
    background: #0056b3;
    border-color: #0056b3;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.proje-card.tab-hidden {
    display: none !important;
}

/* Mobil Uyumlu Duyarlı Tasarım (Mobile Responsiveness) */
@media (max-width: 768px) {
    .projeler-tabs-wrapper {
        margin: 10px 0 20px 0;
        gap: 6px;
        justify-content: center;
    }

    .proje-tab-btn {
        padding: 7px 12px;
        font-size: 0.78rem;
        border-radius: 20px;
        border-width: 1px;
    }

    .proje-card {
        aspect-ratio: 16 / 11;
        min-height: 210px;
        max-height: none;
        border-radius: 10px;
    }

    .proje-card-content {
        padding: 15px;
    }

    .proje-title {
        font-size: 0.98rem;
        line-height: 1.35;
        max-height: 80px;
    }

    .proje-category {
        font-size: 0.72rem;
    }

    .proje-meta-details {
        font-size: 0.78rem;
        gap: 4px;
    }

    .proje-read-more {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
}
