/* Yazılımlar Sayfası - Dark Tema Uyumlu */

/* Ana konteyner */
.yazilimlar-container {
    background-color: var(--body-bg); /* #121212 */
    min-height: 100vh;
    padding: 80px 0 60px;
}

/* Başlık bölümü */
.yazilimlar-header {
    text-align: center;
    margin-bottom: 60px;
}

.yazilimlar-header h1 {
    color: var(--white);
    font-family: "Teko", sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.yazilimlar-header p {
    color: var(--text); /* #f5f5f4cc */
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid container */
.yazilimlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

/* Yazılım kartları */
.yazilim-card {
    background: linear-gradient(145deg, var(--bg), #1a1a1a); /* #171717 -> darker */
    border: 1px solid var(--border); /* #2A2A2A */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.yazilim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, transparent, rgba(191, 247, 71, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.yazilim-card:hover {
    transform: translateY(-8px);
    border-color: rgba(191, 247, 71, 0.3); /* var(--theme) rgba */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.yazilim-card:hover::before {
    opacity: 1;
}

/* Görsel bölümü */
.yazilim-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.yazilim-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.yazilim-card:hover .yazilim-image img {
    transform: scale(1.05);
}

/* Badge - sadece Açık Kaynak için lacivert */
.yazilim-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-open-source {
    background: #1e3a8a; /* Lacivert */
    color: var(--white);
    border: 1px solid #3b82f6;
}

/* İçerik bölümü */
.yazilim-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 160px);
}

.yazilim-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.yazilim-link:hover {
    text-decoration: none;
    color: inherit;
}

.yazilim-link:hover .yazilim-title {
    color: var(--theme);
    transform: translateX(2px);
}

.yazilim-link:hover .yazilim-description {
    color: rgba(245, 245, 244, 0.9);
}

.yazilim-title {
    color: var(--white);
    font-family: "Teko", sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.yazilim-description {
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.yazilim-price {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    text-align: left;
    margin-bottom: 12px;
    padding: 6px 0;
    border-top: 1px solid rgba(191, 247, 71, 0.2);
}

/* Alt bölüm - butonlar */
.yazilim-footer {
    margin-top: auto;
}

.yazilim-actions {
    display: flex;
    gap: 8px;
}

.btn-yazilim {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
    text-align: center;
}

.btn-detail {
    background: transparent;
    color: var(--theme); /* Site rengi - yeşil */
    border: 1px solid rgba(191, 247, 71, 0.4);
}

.btn-detail:hover {
    background: rgba(191, 247, 71, 0.1);
    border-color: var(--theme);
    color: var(--theme);
}

.btn-buy {
    background: linear-gradient(135deg, var(--theme), #a8e543); /* Site rengi degrade */
    color: var(--header);
    border: 1px solid rgba(191, 247, 71, 0.6);
}

.btn-buy:hover {
    background: linear-gradient(135deg, #a8e543, var(--theme));
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(191, 247, 71, 0.35);
    color: var(--header);
}

/* Responsive */
@media (max-width: 1200px) {
    .yazilimlar-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .yazilimlar-container {
        padding: 60px 0 40px;
    }
    
    .yazilimlar-header h1 {
        font-size: 36px;
    }
    
    .yazilimlar-header p {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .yazilimlar-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
        padding: 0 15px;
    }
    
    .yazilim-image {
        height: 140px;
    }
    
    .yazilim-content {
        padding: 16px;
        height: calc(100% - 140px);
    }
    
    .yazilim-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .yazilim-actions {
        justify-content: space-between;
    }
    
    .btn-yazilim {
        flex: 1;
        text-align: center;
        padding: 8px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .yazilimlar-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }
    
    .yazilim-image {
        height: 120px;
    }
    
    .yazilim-content {
        padding: 14px;
        height: calc(100% - 120px);
    }
    
    .yazilim-title {
        font-size: 18px;
    }
    
    .yazilim-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .yazilim-price {
        font-size: 16px;
    }
}

.yazilim-price span {
    display: inline-block;
    font-size: 12px;
    color: var(--text);
    opacity: .8;
    margin-right: 8px;
}

.btn-disabled {
    pointer-events: none;
    background: #334155 !important; /* slate-700 */
    color: #cbd5e1 !important;      /* slate-300 */
    border: 1px dashed rgba(203,213,225,0.35) !important;
    filter: grayscale(0.3);
}