/* Modern Design Enhancements */

/* Global Styles */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #334155;
    line-height: 1.6;
}

/* Header Enhancements */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.navbar-brand .text-logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: #64748b !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #0ea5e9 !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #22c55e);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Card Enhancements */
.shadow-sm {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37) !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.2) !important;
}

/* App List Enhancements */
.app-list .title {
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s ease;
}

.app-list a:hover .title {
    color: #0ea5e9;
}

.app-list img {
    border-radius: 20% !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-list a:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.app-list .developer {
    color: #64748b;
    font-size: 0.875rem;
}

/* Button Enhancements */
.btn-primary, .search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.3);
}

.btn-primary:hover, .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px 0 rgba(102, 126, 234, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: white !important;
    font-weight: 600;
    padding: 0.875rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(34, 197, 94, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px 0 rgba(34, 197, 94, 0.4);
}

/* Section Title Enhancements */
.section-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1e293b;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.h1-title, .h2-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Box Enhancements */
.form-control {
    border-radius: 12px !important;
    border: 2px solid #e2e8f0 !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-1px);
}

/* Featured Apps Grid */
.featured .title {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
}

/* Slider Enhancements */
.swiper-main {
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.swiper-main .coverbg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.swiper-main h3 {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

/* Pagination Enhancements */
.pagination .page-link {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 500;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
}

/* Dropdown Enhancements */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: #0ea5e9 !important;
    transform: translateX(4px);
}

/* Star Rating Enhancements */
.star, .checked {
    color: #fbbf24 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Topics Section */
.topics .topic-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.topics .topic-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.topics img {
    border-radius: 12px !important;
    transition: all 0.3s ease;
}

.topics a:hover img {
    transform: scale(1.02);
}

/* More Link Enhancements */
.more {
    color: #667eea !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.more:hover {
    color: #764ba2 !important;
    transform: translateX(4px);
}

.more::after {
    content: '→';
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.more:hover::after {
    transform: translateX(2px);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Additional Modern Enhancements */

/* Text utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.bg-purple {
    background-color: #8b5cf6 !important;
}

/* Cards */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Sticky positioning */
.sticky-top {
    position: sticky;
    z-index: 1020;
}

/* Color utilities for text */
.text-primary-500 { color: #0ea5e9; }
.text-accent-500 { color: #22c55e; }
.text-purple-500 { color: #8b5cf6; }
.text-red-500 { color: #ef4444; }
.text-orange-500 { color: #f97316; }
.text-green-500 { color: #22c55e; }
.text-indigo-500 { color: #6366f1; }

/* Background utilities */
.bg-primary-100 { background-color: #e0f2fe; }
.bg-primary-600 { color: #075985; }
.bg-accent-100 { background-color: #dcfce7; }
.bg-accent-600 { color: #166534; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-600 { color: #4338ca; }

/* Spacing utilities */
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }

/* Object utilities */
.object-cover { object-fit: cover; }

/* Modern search box container */
.search-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

/* Enhanced form styling */
.input-group {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.input-group .form-control {
    border-right: none;
    border-radius: 12px 0 0 12px !important;
}

.input-group .btn {
    border-radius: 0 12px 12px 0 !important;
    border-left: none;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .h1-title, .h2-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .shadow-sm {
        border-radius: 12px !important;
    }
    
    .app-list img {
        border-radius: 15% !important;
    }
    
    .search-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: #e2e8f0;
    }
    
    .navbar {
        background: rgba(30, 41, 59, 0.95) !important;
        border-bottom-color: rgba(71, 85, 105, 0.8);
    }
    
    .shadow-sm {
        background: rgba(30, 41, 59, 0.9) !important;
        border-color: rgba(71, 85, 105, 0.2);
    }
    
    .form-control {
        background: rgba(30, 41, 59, 0.9);
        border-color: #475569;
        color: #e2e8f0;
    }
    
    .app-list .title {
        color: #e2e8f0;
    }
    
    .search-container {
        background: rgba(30, 41, 59, 0.9);
        border-color: rgba(71, 85, 105, 0.2);
    }
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Enhanced animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Enhanced transitions */
.transition-all {
    transition-property: all;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Hover effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

.hover\:border-primary-300:hover {
    border-color: #7dd3fc;
}

.hover\:opacity-100:hover {
    opacity: 1;
}

.opacity-75 {
    opacity: 0.75;
}

/* Border utilities */
.border-gray-200 {
    border-color: #e5e7eb;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-3 {
    border-radius: 0.375rem;
}

.rounded-4 {
    border-radius: 0.5rem;
}

.rounded-pill {
    border-radius: 50rem;
}

/* Z-index utilities */
.z-index-10 {
    z-index: 10;
}

/* Aspect ratio utilities */
[style*="aspect-ratio"] {
    aspect-ratio: attr(style);
} 