/* Shared styles for projects and works sections */

/* Projects section specific styles */
.bolge#projelerim {
    background-color: #f4f4f4;
    padding: 2rem;
}

.bolge#projelerim .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.bolge#projelerim .section-subtitle {
    font-size: 1.2rem;
    color: #666;
}

/* Works section specific styles */
.bolge#calismalarim {
    background-color: rgb(173, 122, 255);
    padding: 2rem;
}

.bolge#calismalarim .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.bolge#calismalarim .section-subtitle {
    font-size: 1.2rem;
    color: #ddd;
}

/* Shared header styles */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Shared grid styles */
.content-grid {
    column-count: 3;
    column-gap: 1.5rem;
    width: 75vw;
    padding: 0.94rem;
}

/* Shared card styles */
.content-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    /* 8px */
    overflow: hidden;
    box-shadow: 0 0.25rem 0.38rem rgba(0, 0, 0, 0.1);
    /* 4px 6px */
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    break-inside: avoid;
    margin-bottom: 0.94rem;
}

.content-card:hover {
    transform: scale(1.03);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
    /* 20px 40px */
}

/* Shared image styles */
.content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Shared content styles */
.card-content {
    padding: 0.94rem;
    /* 15px */
}

/* Shared title styles */
.card-title {
    font-size: 1.25rem;
    /* 20px */
    margin-bottom: 0.63rem;
    /* 10px */
    font-weight: bold;
    color: #333;
}

/* Shared description styles */
.card-description {
    font-size: 0.9rem;
    /* 14.4px */
    color: #555;
    margin-bottom: 0.63rem;
    /* 10px */
    line-height: 1.5;
}

/* Works specific description style */
.work-description {
    font-size: 1rem;
    color: #666;
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #2b2a2a;
    margin: 2vh auto;
    padding: 2vh;
    color: #f0f0f0;
    line-height: 1.8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */

/* Orta ekranlar için 2 sütun */
@media (max-width: 1024px) {
    .content-grid {
        column-count: 3;
    }

    /* Navbar eklendiğinde, yani telefon modunda */
    .bolge#calismalarim {
        padding-bottom: 8.2vh;
    }

    /* Navbar eklendiğinde, yani telefon modunda */
    .bolge#projelerim {
        padding-bottom: 8.2vh;
    }
}

/* Küçük ekranlar için 1 sütun */
@media (max-width: 700px) {
    .content-grid {
        column-count: 1;
    }
}

/* Tablet ve altı */
@media (max-width: 768px) {

    .content-grid {
        column-count: 3;
        column-gap: 0.5rem;
    }

    .card-description {
        display: none;
    }
}

/* Telefon ve altı */
@media (max-width: 576px) {
    .card-title {
        font-size: 1rem;
    }

    .kart-baslik {
        font-size: 1rem;
        margin-top: unset;
    }

    .content-grid {
        column-count: 2;
    }

    .blogbaslikyazisi {
        margin-bottom: 2rem;
    }
}

/* Çok küçük telefon ve altı */
@media (max-width: 350px) {
    .content-grid {
        column-count: 1;
    }
}