/* Apps Page Styles */

/* Navigation fixes */
.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-logo a:hover {
    text-decoration: none;
}

/* Navbar - always has background on apps page */
.navbar {
    background: var(--bg-primary) !important;
}

/* Navbar scrolled state */
.navbar.scrolled {
    background: var(--bg-secondary) !important;
    opacity: 0.95;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-top: 70px;
    position: relative;
    z-index: 2;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fb923c;
}

.breadcrumb i {
    font-size: 0.75rem;
}

/* Apps Hero Section */
.apps-hero {
    background: var(--bg-primary);
    padding: 4rem 0 4rem 0;
    margin-top: -70px;
    padding-top: calc(4rem + 70px);
    position: relative;
    overflow: hidden;
}

.apps-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.apps-hero .container {
    position: relative;
    z-index: 1;
}

.apps-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.apps-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.apps-hero .hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.apps-hero .hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.apps-hero .stat {
    text-align: center;
}

.apps-hero .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.apps-hero .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Apps Filters Section */
.apps-filters {
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    padding: 2rem 0;
}

.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.filter-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(249, 115, 22, 0.2);
    background: var(--bg-secondary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(249, 115, 22, 0.05);
}

.filter-btn.active {
    background: #f97316;
    color: white;
    border-color: var(--accent-color);
}

.filter-pricing select {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-pricing select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Apps Grid Section */
.apps-grid-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.app-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(249, 115, 22, 0.2);
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.app-card.featured {
    border: 2px solid #f97316;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.app-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #f59e0b);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.app-badge {
    background: #48bb78;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-content {
    flex: 1;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.app-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.app-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.feature {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.app-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
}

.price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Load More Section */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

.load-more-text {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* CTA Section */
.apps-cta-section {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.apps-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.apps-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--accent-color);
    border: 2px solid white;
}

.cta-actions .btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Animation States */
.app-card.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.app-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .apps-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .apps-hero .hero-stats {
        gap: 2rem;
    }
    
    .apps-hero .stat-number {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .filter-categories {
        justify-content: center;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .app-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .app-title {
        font-size: 1.25rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .apps-hero {
        padding: 2rem 0;
    }
    
    .apps-hero .hero-title {
        font-size: 2rem;
    }
    
    .apps-hero .hero-description {
        font-size: 1rem;
    }
    
    .apps-hero .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .apps-filters {
        padding: 1rem 0;
    }
    
    .filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .apps-grid-section {
        padding: 2rem 0;
    }
    
    .app-card {
        padding: 1.25rem;
    }
    
    .app-features {
        gap: 0.25rem;
    }
    
    .feature {
        padding: 0.125rem 0.5rem;
        font-size: 0.675rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

.loading .app-card {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

/* Search Highlighting */
.search-highlight {
    background: rgba(255, 235, 59, 0.3);
    border-radius: 0.25rem;
    padding: 0.125rem 0.25rem;
}

/* Category Filtering Animation */
.apps-grid {
    transition: all 0.3s ease;
}

.app-card {
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* Pagination Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.filter-btn:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .apps-filters,
    .apps-cta-section,
    .footer {
        display: none;
    }
    
    .app-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 