/* 
 * Aviyana Softwares - Global Design System 
/*
 * Aviyana Softwares - Global Design System
 * Theme: Light Neutral, Glassmorphism, Premium SaaS
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Premium Color Palette - Vibrant & Harmonic */
    --primary: #6366F1;
    /* Indigo 500 */
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #06B6D4;
    /* Cyan 500 */
    --accent: #D946EF;
    /* Fuchsia 500 */
    --accent-glow: rgba(217, 70, 239, 0.4);

    --bg-body: #0F172A;
    /* Slate 900 - Dark Mode default for premium feel */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */

    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --text-dim: #64748B;
    /* Slate 500 */

    --white: #FFFFFF;
    --black: #000000;

    /* Enhanced Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --blur-xl: 24px;
    --blur-lg: 16px;
    --blur-md: 8px;

    /* Sizing & Borders */
    --radius-full: 9999px;
    --radius-2xl: 32px;
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;

    /* Transitions */
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating Background Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: floatingOrb 15s infinite alternate;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: floatingOrb 20s infinite alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation: floatingOrb 18s infinite linear;
}

@keyframes floatingOrb {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 100px) scale(1.1);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Reusable Components --- */

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glass Card - Modern Depth */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--glass-highlight) 0%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--glass-highlight);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6);
}

.premium-card {
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
}

/* Buttons - Premium & Energetic */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
    cursor: pointer;
    font-size: 0.95rem;
    gap: 10px;
    border: 1px solid transparent;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 30px -10px var(--primary-glow);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
    backdrop-filter: blur(var(--blur-md));
}

.btn-outline:hover {
    background: var(--white);
    color: var(--bg-body);
    border-color: var(--white);
    transform: translateY(-4px);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-weight: 400;
}

.text-glow {
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Grid Utilities */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Navbar Enhancements */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer Enhancements */
footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(var(--blur-lg));
    padding: 6rem 0 3rem;
    margin-top: 8rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

/* Helper Class */
.hidden {
    display: none !important;
}

/* --- Verified & Update Badges --- */
.verified-icon {
    color: #10B981;
    font-size: 0.85rem;
    cursor: help;
    transition: transform 0.2s;
}

.verified-icon:hover {
    transform: scale(1.2);
}

.update-mini-badge {
    background: #10B981;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-tag {
    font-size: 0.75rem;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.verified-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.update-status-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.status-pill {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.status-pill-active {
    border-color: var(--accent);
    color: var(--accent);
    position: relative;
}

.status-pill-active::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}

/* --- Verified Safe Badge --- */
.verified-icon {
    font-size: 0.9rem;
    color: #10B981;
    /* Green */
    margin-left: 0.5rem;
    cursor: help;
    display: inline-flex;
    align-items: center;
    position: relative;
    vertical-align: middle;
}

.verified-tooltip {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.verified-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.verified-icon:hover .verified-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Badge for Detail Page (Larger) */
.verified-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.verified-banner i {
    font-size: 1.1rem;
}

/* --- Curation Badges & Highlighting --- */
.curation-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
    z-index: 5;
}

.c-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.badge-top-pick {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.badge-editors-choice {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.badge-popular {
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: white;
}

/* Featured Card Highlighting */
.sw-card.is-featured {
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(white, white), linear-gradient(135deg, var(--primary), var(--accent));
}

.sw-card.is-editors-choice {
    background-image: linear-gradient(white, white), linear-gradient(135deg, #10B981, #34D399);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.sw-card:hover .sw-icon-sm {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Layout for Highlighted Sections */
.highlight-section {
    padding: 4rem 0;
    margin-bottom: 4rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-lg));
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.section-header-flex .section-title {
    text-align: left;
    margin-bottom: 0;
}

/* --- Advanced Filters & Search Enhancements --- */
.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 3rem;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.filters-sidebar::-webkit-scrollbar {
    width: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.filter-group {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--blur-md));
}

.filter-group h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    letter-spacing: 1.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-medium);
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.filter-option:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    transform: translateX(5px);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    position: relative;
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid #CBD5E1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.filter-option input[type="radio"] {
    border-radius: 50%;
}

.filter-option input:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-option input:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-option input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Updated Software Cards */
.sw-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.sw-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.sw-icon-sm {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: white;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-smooth);
    object-fit: contain;
}

.sw-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.sw-desc {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.platform-tag {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.platform-tag::before {
    content: '\f108';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.btn-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.sw-card:hover .btn-text {
    gap: 10px;
}

/* Search Container Improvements */
.search-input-wrapper {
    width: 100%;
}

.main-search {
    padding: 18px 25px 18px 60px;
    font-size: 1.1rem;
    border: 2px solid transparent;
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.main-search:focus {
    border-color: var(--primary);
    box-shadow: 0 15px 45px rgba(79, 70, 229, 0.15);
    outline: none;
}

.sw-header-info {
    flex: 1;
}

.sw-badges-row {
    margin-top: 4px;
}

.sw-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.sw-card:hover .sw-icon-sm {
    transform: scale(1.05);
}

/* Results Bar Enhancement */
.results-bar {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 15px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

#results-count {
    font-weight: 700;
    color: var(--text-dark);
}

/* Bulk Checkbox Premium Style */
.bulk-checkbox-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.bulk-select-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .listing-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: white;
        z-index: 2000;
        padding: 40px 20px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    }

    .filters-sidebar.active {
        left: 0;
    }
}

/* --- Privacy Transparency Styling --- */
.privacy-assurance-block {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.privacy-icon-box {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #10B981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
}

.privacy-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.privacy-content p {
    color: var(--text-medium);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.privacy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.privacy-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.privacy-point i {
    color: #10B981;
}

/* Cookie Consent Bar */
.cookie-consent-bar {
    position: fixed;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 850px;
    background: white;
    padding: 1.2rem 2rem;
    border-radius: 100px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
}

.cookie-consent-bar.active {
    bottom: 30px;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-text i {
    font-size: 1.4rem;
    color: #F59E0B;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .privacy-assurance-block {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .cookie-consent-bar {
        flex-direction: column;
        text-align: center;
        border-radius: 24px;
        gap: 15px;
        padding: 1.5rem;
        width: calc(100% - 30px);
    }

    .cookie-text {
        flex-direction: column;
    }
}
/* Category Card Alignment Fix */
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
}

