/* LinkSave.net Custom Stylesheet (Download Portal Style) */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --download-green: #198754;
    --download-green-hover: #157347;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --card-border: #e9ecef;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.08);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Header & Navbar */
.navbar-brand {
    font-size: 1.45rem;
    letter-spacing: -0.5px;
}
.brand-icon {
    font-size: 1.6rem;
}
.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navbar Dropdowns */
.navbar .dropdown-menu {
    z-index: 1060;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}
.navbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}
.navbar .dropdown-item:hover {
    background-color: #f1f8f4;
    color: #198754;
}
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: #198754 !important;
    color: #ffffff !important;
    font-weight: 600;
}
.navbar .dropdown-item.active i {
    color: #ffffff !important;
}

/* Search Bar */
.hero-search-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    margin-bottom: 2rem;
}
.search-wrapper {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}
.search-input-group {
    background: #fff;
    border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
}
.search-input-group input {
    border: none;
    box-shadow: none;
    font-size: 1.05rem;
}
.search-input-group input:focus {
    outline: none;
    box-shadow: none;
}
.search-input-group .btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    margin-top: 8px;
    z-index: 1050;
    overflow: hidden;
    display: none;
}
.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.15s ease;
}
.suggestion-item:hover {
    background: #f8f9fa;
}
.suggestion-item img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
}

/* App Cards */
.app-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #dee2e6;
}
.app-card .card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.app-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.app-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
    text-decoration: none;
}
.app-card-title:hover {
    color: var(--primary-color);
}
.app-card-meta {
    font-size: 0.825rem;
    color: var(--text-muted);
}
.app-card-developer {
    font-size: 0.825rem;
    color: var(--text-muted);
}
.app-card-footer {
    padding: 0.75rem 1.25rem;
    background-color: #fafbfc;
    border-top: 1px solid #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Detail Page */
.detail-header-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.detail-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.detail-icon img {
    max-height: 52px !important;
}
@media (max-width: 767.98px) {
    .detail-header-card {
        padding: 1.25rem 1rem;
    }
    .detail-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
    .detail-icon img {
        max-height: 44px !important;
    }
    .detail-header-card h1 {
        font-size: 1.25rem;
    }
}
.btn-download-big {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.35);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}
.btn-download-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(25, 135, 84, 0.45);
    color: #fff;
}
/* Download Area Multi-box Grid */
.download-box-card {
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    transition: all 0.25s ease;
    cursor: pointer;
    min-height: 120px;
}
.active-download-box {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: #fff;
    border: 1px solid #146c43;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.25);
}
.active-download-box:hover {
    background: linear-gradient(135deg, #157347 0%, #0f5132 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.35);
    color: #fff;
}
.disabled-download-box {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    border: 1px solid #495057;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.2);
}
.disabled-download-box:hover {
    background: linear-gradient(135deg, #5c636a 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
    color: #fff;
}
.related-download-box {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #212529;
}
.related-download-box:hover {
    border-color: #0d6efd;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.12);
    color: #212529;
}
.related-download-box:hover .fa-arrow-right {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}
.related-download-box .fa-arrow-right {
    transition: transform 0.2s ease;
}

.specs-table {
    margin-bottom: 0;
}
.specs-table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 35%;
    border-color: #f1f3f5;
}
.specs-table td {
    font-weight: 600;
    border-color: #f1f3f5;
}
.rich-content {
    line-height: 1.75;
    font-size: 1.025rem;
}
.rich-content h2, .rich-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.85rem;
    font-weight: 700;
    color: #1a252f;
}
.rich-content ul, .rich-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.25rem;
}

/* Safe Download Intermediary Page */
.safe-download-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 680px;
    margin: 2rem auto;
}
.countdown-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    border: 3px solid #81c784;
}
.badge-certified {
    background: #e3f2fd;
    color: #0d47a1;
    border-radius: 50px;
    padding: 6px 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #1e242b;
    color: #adb5bd;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
    margin-top: 4rem;
}
footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}
footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.15s ease;
}
footer a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #2d3540;
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.9rem;
}

/* Interactive Star Rating Widget */
.star-rating-interactive {
    cursor: pointer;
    user-select: none;
    line-height: 1;
}
.star-rating-interactive .star-clickable {
    font-size: 1.2rem;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.15s ease;
    cursor: pointer;
    padding: 2px 1px;
}
.star-rating-interactive:not(.disabled) .star-clickable:hover {
    transform: scale(1.3);
}
.star-rating-interactive.disabled .star-clickable {
    cursor: default;
    pointer-events: none;
}
.star-rating-interactive .star-clickable.active-star {
    color: #ffc107 !important;
}
.star-rating-interactive .star-clickable.inactive-star {
    color: #dee2e6 !important;
}

/* Custom Modern Pagination */
.pagination {
    margin-bottom: 0;
}
.pagination .page-item {
    margin: 0 2px;
}
.pagination .page-link {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    transition: all 0.2s ease;
    background-color: #ffffff;
}
.pagination .page-link:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #198754;
}
.pagination .page-item.active .page-link {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.25);
}
.pagination .page-item.disabled .page-link {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #94a3b8 !important;
}

