/* ================================================
   AWDESCARGA.ES — COMPLETE CSS
   File: assets/css/frontend.css
   Includes: header + all pages + software-detail
   ================================================ */

/* ── BASE RESET & GLOBALS ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f6f8; line-height: 1.6; }

/* ── HEADER STYLES ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f6f8; }
        
        /* HEADER STYLES */
        .top-bar { background: #169f8f; padding: 12px 0; }
        .top-bar-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
        .logo { font-size: 28px; font-weight: 700; color: white; text-decoration: none; }
        .search-bar { flex: 1; max-width: 600px; margin: 0 40px; position: relative; }
        .search-input { width: 100%; padding: 12px 50px 12px 20px; border: none; border-radius: 8px; font-size: 14px; }
        .search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #169f8f; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
        .search-btn:hover { background: #148074; }
        .categories-btn { background: white; color: #169f8f; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
        .categories-btn:hover { background: #f3f4f6; }
        
        .nav-tabs { background: white; border-bottom: 2px solid #f3f4f6; }
        .nav-tabs-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; gap: 0; }
        .nav-tab { padding: 16px 24px; color: #6b7280; text-decoration: none; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; transition: all 0.2s; }
        .nav-tab:hover { color: #169f8f; background: #f9fafb; }
        .nav-tab.active { color: #169f8f; border-bottom-color: #169f8f; }
        
        @media (max-width: 768px) {
            .search-bar { display: none; }
            .logo { font-size: 24px; }
            .nav-tabs-content { overflow-x: auto; }
        }

/* Disable text selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection for inputs */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* ── GENERAL FRONTEND ── */
/* ============================================
   frontend.css — AW Descarga
   Location: public_html/assets/css/frontend.css
   Sab frontend pages is file ko use karte hain
   ============================================ */

/* ── Reset & Base ─────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6f8;
    color: #1f2937;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── Top Bar (Header) ─────────────────────── */
.top-bar { background: #169f8f; padding: 12px 0; }
.top-bar-content {
    max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 28px; font-weight: 700; color: white; text-decoration: none; }
.logo:hover { opacity: 0.9; }

/* ── Search Bar ───────────────────────────── */
.search-bar { flex: 1; max-width: 600px; margin: 0 40px; position: relative; }
.search-input {
    width: 100%; padding: 12px 50px 12px 20px;
    border: none; border-radius: 8px; font-size: 14px;
    outline: none;
}
.search-input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.search-btn {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: #169f8f; color: white; border: none;
    padding: 8px 16px; border-radius: 6px; cursor: pointer;
    transition: background 0.2s;
}
.search-btn:hover { background: #148074; }

/* ── User Button ──────────────────────────── */
.user-btn {
    background: white; color: #169f8f;
    padding: 10px 20px; border-radius: 8px;
    font-weight: 600; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background 0.2s;
}
.user-btn:hover { background: #f3f4f6; }

/* ── Nav Tabs ─────────────────────────────── */
.nav-tabs { background: white; border-bottom: 2px solid #f3f4f6; }
.nav-tabs-content {
    max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; gap: 0;
}
.nav-tab {
    padding: 16px 24px; color: #6b7280; text-decoration: none;
    border-bottom: 3px solid transparent;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 500; transition: all 0.2s;
    white-space: nowrap;
}
.nav-tab:hover  { color: #169f8f; background: #f9fafb; }
.nav-tab.active { color: #169f8f; border-bottom-color: #169f8f; }

/* ── Breadcrumb ───────────────────────────── */
.breadcrumb { background: white; border-bottom: 1px solid #e8e9ed; padding: 12px 0; }
.breadcrumb-content {
    max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; gap: 8px; align-items: center;
    font-size: 14px; color: #9ca3af;
}
.breadcrumb-content a { color: #6b7280; transition: color 0.2s; }
.breadcrumb-content a:hover { color: #169f8f; }

/* ── Main Container ───────────────────────── */
.container { max-width: 1300px; margin: 0 auto; padding: 30px 20px; }

/* ── Cards ────────────────────────────────── */
.card {
    background: white; border-radius: 12px;
    border: 1px solid #e8e9ed; padding: 24px;
    margin-bottom: 24px;
}

/* ── Software Item (listing cards) ───────── */
.software-item {
    background: white; border-radius: 12px;
    border: 1px solid #e8e9ed; padding: 16px;
    transition: all 0.2s; display: block;
    text-decoration: none; color: inherit;
}
.software-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #169f8f;
}
.item-thumb {
    width: 100%; aspect-ratio: 1;
    border-radius: 10px; overflow: hidden;
    background: #f9fafb; margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-title { font-size: 15px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
.item-desc  { font-size: 13px; color: #6b7280; margin-bottom: 10px; line-height: 1.4; }
.item-meta  { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #9ca3af; }
.item-size  { background: #f3f4f6; padding: 3px 8px; border-radius: 4px; font-weight: 600; }

/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px;
    font-weight: 600; font-size: 14px;
    cursor: pointer; border: none; transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: #169f8f; color: white; }
.btn-primary:hover { background: #148074; transform: translateY(-1px); }
.btn-secondary { background: white; color: #169f8f; border: 1.5px solid #169f8f; }
.btn-secondary:hover { background: #f0fdfa; }

/* ── Badges ───────────────────────────────── */
.badge {
    display: inline-flex; padding: 4px 12px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-windows { background: #dbeafe; color: #1e40af; }
.badge-mac     { background: #f3f4f6; color: #374151; }
.badge-android { background: #dcfce7; color: #166534; }
.badge-default { background: #ede9fe; color: #5b21b6; }

/* ── Section Title ────────────────────────── */
.section-title {
    font-size: 20px; font-weight: 700; color: #1f2937;
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.section-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 20px;
}
.view-all-btn {
    font-size: 14px; color: #169f8f; font-weight: 600;
    text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.view-all-btn:hover { text-decoration: underline; }

/* ── Download Button ──────────────────────── */
.download-box {
    background: linear-gradient(135deg, #169f8f, #148074);
    border-radius: 12px; padding: 28px; color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(22,159,143,0.25);
}
.download-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: white; color: #169f8f;
    padding: 16px; border-radius: 8px;
    font-weight: 700; font-size: 16px;
    text-decoration: none; transition: all 0.2s;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* ── Flash Messages ───────────────────────── */
.alert {
    padding: 12px 16px; border-radius: 8px;
    font-size: 14px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Footer ───────────────────────────────── */
.footer { background: #1a1a1a; color: #fff; margin-top: 60px; }
.footer-content { max-width: 1400px; margin: 0 auto; padding: 50px 20px 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
.footer-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #9ca3af; font-size: 14px;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
}
.footer-links a:hover { color: #169f8f; transform: translateX(4px); }
.footer-about { color: #9ca3af; font-size: 14px; line-height: 1.7; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-icon {
    width: 38px; height: 38px; border-radius: 50%;
    background: #2a2a2a; display: flex; align-items: center; justify-content: center;
    color: #9ca3af; transition: all 0.2s; text-decoration: none;
}
.social-icon:hover { background: #169f8f; color: white; transform: translateY(-3px); }

.footer-bottom {
    border-top: 1px solid #2a2a2a; padding-top: 24px;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copyright { color: #6b7280; font-size: 13px; }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a { color: #6b7280; font-size: 13px; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #169f8f; }
.footer-bottom-links span { color: #374151; }

/* ── Pagination ───────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.page-btn {
    padding: 8px 16px; border-radius: 8px;
    border: 1px solid #e5e7eb; background: white;
    color: #374151; font-size: 14px; cursor: pointer;
    text-decoration: none; transition: all 0.2s;
}
.page-btn:hover  { border-color: #169f8f; color: #169f8f; }
.page-btn.active { background: #169f8f; color: white; border-color: #169f8f; }

/* ── Form Elements ────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 11px 16px;
    border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 15px; color: #1f2937;
    transition: border-color 0.2s; outline: none;
    background: white;
}
.form-control:focus { border-color: #169f8f; box-shadow: 0 0 0 3px rgba(22,159,143,0.1); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 1024px) {
    .search-bar { display: none; }
}
@media (max-width: 768px) {
    .logo { font-size: 22px; }
    .nav-tabs-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nav-tab { padding: 14px 16px; font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .container { padding: 20px 16px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}


/* ── HOME & LISTING PAGES ── */

    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    /* PREVENT HORIZONTAL SCROLL */
    html { 
        overflow-x: hidden;
        scroll-behavior: smooth;
    }
    body {
        overflow-x: hidden;
    }
    
    .main-container { 
        max-width: 1400px; 
        margin: 0 auto; 
        padding: clamp(12px, 2vw, 24px); 
        display: grid; 
        grid-template-columns: 1fr minmax(280px, 320px); 
        gap: clamp(16px, 2vw, 24px);
    }
    
    .section { 
        background: white; 
        border-radius: clamp(6px, 1vw, 8px); 
        border: 1px solid #e8e9ed; 
        padding: clamp(12px, 2vw, 24px); 
        margin-bottom: clamp(16px, 2vw, 24px);
    }
    .section.hidden { display: none; }
    .section-header { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        margin-bottom: clamp(12px, 2vw, 20px); 
        padding-bottom: clamp(10px, 1.5vw, 14px); 
        border-bottom: 2px solid #169f8f; 
        flex-wrap: wrap;
        gap: 12px; 
    }
    .section-title { 
        font-size: clamp(16px, 2.5vw, 20px); 
        font-weight: 600; 
        color: #1f2937; 
        display: flex; 
        align-items: center; 
        gap: 10px; 
    }
    .view-all-btn { 
        padding: clamp(6px, 1vw, 8px) clamp(12px, 1.5vw, 18px); 
        border: 1px solid #169f8f; 
        color: #169f8f; 
        text-decoration: none; 
        border-radius: 6px; 
        font-size: clamp(12px, 1.5vw, 13px); 
        font-weight: 600; 
        transition: all 0.2s;
        white-space: nowrap;
    }
    .view-all-btn:hover { background: #169f8f; color: white; }
    
    .software-item { 
        display: grid; 
        grid-template-columns: minmax(50px, 70px) 1fr auto minmax(100px, 120px) minmax(120px, 140px) minmax(80px, 90px); 
        gap: clamp(10px, 1.5vw, 16px); 
        align-items: center; 
        padding: clamp(10px, 1.5vw, 14px); 
        border-radius: 6px; 
        transition: all 0.2s; 
        text-decoration: none; 
        margin-bottom: 8px; 
        border: 1px solid transparent; 
        position: relative;
    }
    .software-item:hover { background: #f9fafb; border-color: #e8e9ed; }
    
    .item-thumb { 
        width: 100%;
        aspect-ratio: 1;
        max-width: 70px;
        border-radius: clamp(6px, 1vw, 8px); 
        background: #f3f4f6; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        overflow: hidden; 
        border: 1px solid #e8e9ed; 
        position: relative;
    }
    .item-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .item-thumb i { font-size: clamp(20px, 3vw, 30px); color: #d1d5db; }
    
    .item-badges { 
        position: absolute; 
        top: -6px; 
        right: -6px; 
        display: flex; 
        flex-direction: column; 
        gap: 4px; 
        z-index: 10; 
    }
    .badge-featured, .badge-trending { 
        padding: clamp(3px, 0.5vw, 4px) clamp(6px, 1vw, 8px); 
        border-radius: 12px; 
        font-size: clamp(9px, 1.2vw, 10px); 
        font-weight: 700; 
        display: flex; 
        align-items: center; 
        gap: 4px; 
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        white-space: nowrap;
    }
    .badge-featured { background: #fbbf24; color: #78350f; }
    .badge-trending { background: #ef4444; color: white; }
    
    .item-info { 
        min-width: 0;
    }
    .item-title { 
        font-size: clamp(13px, 1.8vw, 15px); 
        font-weight: 600; 
        color: #1f2937; 
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .item-desc { 
        font-size: clamp(11px, 1.5vw, 13px); 
        color: #9ca3af; 
        margin-bottom: 6px; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        white-space: nowrap;
    }
    .item-meta { 
        font-size: clamp(10px, 1.3vw, 12px); 
        color: #169f8f;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .favorite-btn {
        width: clamp(32px, 4vw, 40px);
        height: clamp(32px, 4vw, 40px);
        border-radius: 50%;
        border: 2px solid #e5e7eb;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
        flex-shrink: 0;
    }
    .favorite-btn:hover { border-color: #ef4444; background: #fee2e2; }
    .favorite-btn i { 
        font-size: clamp(14px, 2vw, 18px); 
        color: #d1d5db; 
        transition: all 0.2s; 
    }
    .favorite-btn:hover i { color: #ef4444; }
    .favorite-btn.active { border-color: #ef4444; background: #ef4444; }
    .favorite-btn.active i { color: white; }
    
    .item-category { 
        display: inline-flex; 
        align-items: center; 
        gap: 6px; 
        padding: clamp(6px, 1vw, 7px) clamp(10px, 1.5vw, 14px); 
        background: #dbeafe; 
        color: #1e40af; 
        border-radius: 6px; 
        font-size: clamp(11px, 1.4vw, 12px); 
        font-weight: 600;
        white-space: nowrap;
    }
    
    .item-rating { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 6px;
    }
    .rating-stars { 
        color: #fbbf24; 
        font-size: clamp(12px, 1.5vw, 13px); 
        letter-spacing: 2px; 
    }
    .rating-text { 
        font-size: clamp(10px, 1.2vw, 11px); 
        color: #9ca3af; 
        white-space: nowrap; 
    }
    
    .item-size { 
        font-size: clamp(14px, 2vw, 17px); 
        font-weight: 700; 
        color: #1f2937; 
        text-align: right;
        white-space: nowrap;
    }
    
    .sidebar-box { 
        background: white; 
        border-radius: clamp(6px, 1vw, 8px); 
        border: 1px solid #e8e9ed; 
        padding: clamp(16px, 2vw, 20px); 
        margin-bottom: clamp(16px, 2vw, 20px);
    }
    .sidebar-title { 
        font-size: clamp(16px, 2vw, 18px); 
        font-weight: 600; 
        color: #1f2937; 
        margin-bottom: clamp(14px, 2vw, 18px); 
        padding-bottom: 12px; 
        border-bottom: 2px solid #169f8f; 
    }
    
    .category-item { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: clamp(10px, 1.5vw, 12px) clamp(12px, 1.5vw, 14px); 
        border-radius: 6px; 
        text-decoration: none; 
        transition: all 0.2s; 
        margin-bottom: 6px; 
        border: 1px solid transparent;
    }
    .category-item:hover { background: #f9fafb; border-color: #e8e9ed; }
    .category-left { 
        display: flex; 
        align-items: center; 
        gap: 12px;
        flex: 1;
        min-width: 0;
    }
    .category-icon { 
        width: clamp(32px, 4vw, 36px); 
        height: clamp(32px, 4vw, 36px); 
        border-radius: 6px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: clamp(16px, 2vw, 18px);
        flex-shrink: 0;
    }
    .category-icon.windows { background: #dbeafe; color: #0078d4; }
    .category-icon.mac { background: #f3f4f6; color: #555; }
    .category-icon.android { background: #d1fae5; color: #10b981; }
    .category-name { 
        font-size: clamp(13px, 1.7vw, 14px); 
        font-weight: 600; 
        color: #1f2937;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .category-count { 
        font-size: clamp(12px, 1.5vw, 13px); 
        font-weight: 700; 
        color: #169f8f; 
        background: #f0fdfa; 
        padding: 4px 10px; 
        border-radius: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .popular-item { 
        display: flex; 
        gap: 12px; 
        padding: 10px; 
        border-radius: 6px; 
        text-decoration: none; 
        transition: all 0.2s; 
        margin-bottom: 6px; 
        border: 1px solid transparent;
    }
    .popular-item:hover { background: #f9fafb; border-color: #e8e9ed; }
    .popular-thumb { 
        width: clamp(45px, 6vw, 55px); 
        height: clamp(45px, 6vw, 55px); 
        border-radius: 6px; 
        background: #f3f4f6; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        overflow: hidden; 
        flex-shrink: 0; 
        border: 1px solid #e8e9ed; 
    }
    .popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .popular-thumb i { font-size: clamp(18px, 2.5vw, 22px); color: #d1d5db; }
    .popular-info { 
        flex: 1; 
        min-width: 0;
    }
    .popular-title { 
        font-size: clamp(13px, 1.7vw, 14px); 
        font-weight: 600; 
        color: #1f2937; 
        margin-bottom: 4px; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        white-space: nowrap; 
    }
    .popular-category { 
        font-size: clamp(11px, 1.4vw, 12px); 
        color: #9ca3af;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .popular-size { 
        font-size: clamp(13px, 1.7vw, 14px); 
        font-weight: 700; 
        color: #169f8f; 
        align-self: center;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    @media (max-width: 1024px) {
        .main-container { 
            grid-template-columns: 1fr;
        }
        .software-item { 
            grid-template-columns: minmax(50px, 60px) 1fr auto auto;
        }
        .item-category, .item-rating { 
            display: none;
        }
    }
    
    @media (max-width: 768px) {
        .software-item {
            grid-template-columns: 50px 1fr auto;
        }
        .item-size {
            display: none;
        }
    }
    
    @media (max-width: 480px) {
        .item-title {
            font-size: 13px;
        }
        .item-desc {
            font-size: 11px;
        }
    }



    /* Category Header */
    .category-header { background: linear-gradient(135deg, #169f8f, #148074); color: white; padding: 40px 20px; text-align: center; }
    .category-header h1 { font-size: 36px; font-weight: 600; margin-bottom: 10px; }
    .category-header p { font-size: 16px; opacity: 0.9; }
    
    /* Container */
    .container { max-width: 1400px; margin: 0 auto; padding: 30px 20px; }
    
    /* Software Grid */
    .software-grid { display: grid; gap: 16px; }
    .software-item { background: white; border-radius: 8px; border: 1px solid #e8e9ed; padding: 20px; display: grid; grid-template-columns: 70px 1fr 120px 140px 90px; gap: 16px; align-items: center; text-decoration: none; transition: all 0.2s; }
    .software-item:hover { border-color: #169f8f; transform: translateX(4px); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    
    .item-thumb { width: 70px; height: 70px; border-radius: 8px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #e8e9ed; }
    .item-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .item-thumb i { font-size: 30px; color: #d1d5db; }
    
    .item-info { }
    .item-title { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 6px; }
    .item-desc { font-size: 13px; color: #9ca3af; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .item-meta { font-size: 12px; color: #169f8f; }
    
    .item-category { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #dbeafe; color: #1e40af; border-radius: 6px; font-size: 12px; font-weight: 600; }
    
    .item-rating { display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .rating-stars { color: #fbbf24; font-size: 13px; letter-spacing: 2px; }
    .rating-text { font-size: 11px; color: #9ca3af; }
    
    .item-size { font-size: 17px; font-weight: 700; color: #1f2937; text-align: right; }
    
    .empty-state { text-align: center; padding: 80px 20px; background: white; border-radius: 8px; border: 1px solid #e8e9ed; }
    .empty-icon { font-size: 64px; color: #e5e7eb; margin-bottom: 16px; }
    .empty-title { font-size: 24px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
    .empty-text { color: #9ca3af; }
    
    @media (max-width: 1200px) {
        .software-item { grid-template-columns: 60px 1fr auto; }
        .item-category, .item-rating { display: none; }
    }




/* ── SOFTWARE DETAIL PAGE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f5f6f8; line-height: 1.6; }
        
        .top-bar { background: #169f8f; padding: 12px 0; }
        .top-bar-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
        .logo { font-size: 28px; font-weight: 700; color: white; text-decoration: none; }
        .search-bar { flex: 1; max-width: 600px; margin: 0 40px; position: relative; }
        .search-input { width: 100%; padding: 12px 50px 12px 20px; border: none; border-radius: 8px; font-size: 14px; }
        .search-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: #169f8f; color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
        .categories-btn { background: white; color: #169f8f; padding: 12px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
        
        .nav-tabs { background: white; border-bottom: 2px solid #f3f4f6; }
        .nav-tabs-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; gap: 0; }
        .nav-tab { padding: 16px 24px; color: #6b7280; text-decoration: none; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; transition: all 0.2s; }
        .nav-tab:hover { color: #169f8f; background: #f9fafb; }
        .nav-tab.active { color: #169f8f; border-bottom-color: #169f8f; }
        
        .breadcrumb { background: white; border-bottom: 1px solid #e8e9ed; padding: 12px 0; }
        .breadcrumb-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: #9ca3af; }
        .breadcrumb a { color: #6b7280; text-decoration: none; }
        .breadcrumb a:hover { color: #169f8f; }
        
        .container { max-width: 1300px; margin: 0 auto; padding: 30px 20px; }
        .content-grid { display: grid; grid-template-columns: 1fr 350px; gap: 30px; }
        
        .software-header { background: white; border-radius: 12px; padding: 32px; margin-bottom: 30px; border: 1px solid #e8e9ed; }
        .software-top { display: flex; gap: 24px; margin-bottom: 24px; }
        .software-icon { width: 120px; height: 120px; border-radius: 16px; overflow: hidden; flex-shrink: 0; border: 2px solid #e8e9ed; background: #f9fafb; display: flex; align-items: center; justify-content: center; }
        .software-icon img { width: 100%; height: 100%; object-fit: cover; }
        .software-icon i { font-size: 48px; color: #d1d5db; }
        .software-info { flex: 1; }
        .software-title { font-size: 32px; font-weight: 700; color: #1f2937; margin-bottom: 8px; }
        .software-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
        .meta-item { display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 14px; }
        .meta-item i { color: #9ca3af; }
        .category-badge { display: inline-flex; padding: 6px 14px; background: #dbeafe; color: #0369a1; border-radius: 20px; font-size: 13px; font-weight: 600; }
        .software-description { color: #6b7280; font-size: 16px; line-height: 1.8; }
        
        .stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; margin: 24px 0; }
        .stat { text-align: center; }
        .stat-value { font-size: 24px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
        .stat-label { font-size: 13px; color: #9ca3af; text-transform: uppercase; }
        
        .screenshots-section { background: white; border-radius: 12px; padding: 32px; margin-bottom: 30px; border: 1px solid #e8e9ed; }
        .section-title { font-size: 22px; font-weight: 700; color: #1f2937; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .screenshots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
        .screenshot-item { border-radius: 12px; overflow: hidden; border: 2px solid #e8e9ed; cursor: pointer; transition: all 0.2s; aspect-ratio: 16/9; }
        .screenshot-item:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
        .screenshot-item img { width: 100%; height: 100%; object-fit: cover; }
        
        .content-section { background: white; border-radius: 12px; padding: 32px; margin-bottom: 30px; border: 1px solid #e8e9ed; }
        .content-section h2 { font-size: 22px; font-weight: 700; color: #1f2937; margin-bottom: 16px; }
        .content-section p { color: #6b7280; line-height: 1.8; margin-bottom: 16px; }
        
        .requirements { background: #f9fafb; border-radius: 8px; padding: 20px; white-space: pre-line; color: #6b7280; font-size: 14px; line-height: 1.8; }
        
        .related-section { margin-top: 30px; }
        .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .related-card { background: white; border-radius: 12px; padding: 20px; border: 1px solid #e8e9ed; transition: all 0.2s; text-decoration: none; display: block; }
        .related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
        .related-icon { width: 60px; height: 60px; background: #f9fafb; border-radius: 10px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .related-icon img { width: 100%; height: 100%; object-fit: cover; }
        .related-icon i { font-size: 28px; color: #d1d5db; }
        .related-title { font-size: 16px; font-weight: 600; color: #1f2937; margin-bottom: 8px; }
        .related-meta { font-size: 13px; color: #9ca3af; }
        
        .sidebar { position: sticky; top: 20px; }
        .download-box { background: linear-gradient(135deg, #169f8f, #148074); border-radius: 12px; padding: 28px; color: white; margin-bottom: 20px; box-shadow: 0 8px 20px rgba(22,159,143,0.3); }
        .download-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
        .download-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: white; color: #169f8f; padding: 16px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; transition: all 0.2s; }
        .download-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
        .download-info { margin-top: 16px; font-size: 13px; opacity: 0.9; }
        
        .info-box { background: white; border-radius: 12px; padding: 24px; border: 1px solid #e8e9ed; margin-bottom: 20px; }
        .info-title { font-size: 16px; font-weight: 700; color: #1f2937; margin-bottom: 16px; }
        .info-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
        .info-item:last-child { border: none; }
        .info-label { color: #6b7280; }
        .info-value { color: #1f2937; font-weight: 600; }
        .info-link { color: #169f8f; text-decoration: none; display: flex; align-items: center; gap: 4px; }
        .info-link:hover { text-decoration: underline; }
        
        .lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; }
        .lightbox.active { display: flex; }
        .lightbox-content { max-width: 90%; max-height: 90%; }
        .lightbox-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; }
        
        @media (max-width: 1024px) {
            .content-grid { grid-template-columns: 1fr; }
            .screenshots-grid { grid-template-columns: 1fr; }
            .related-grid { grid-template-columns: repeat(2, 1fr); }
            .search-bar { display: none; }
        }
        
        @media (max-width: 768px) {
            .software-top { flex-direction: column; }
            .software-title { font-size: 24px; }
            .stats-bar { grid-template-columns: repeat(2, 1fr); }
            .related-grid { grid-template-columns: 1fr; }
            .nav-tabs-content { overflow-x: auto; }
        }