/* FEATURED APPS - Exact Styling from Screenshot */

/* Featured Apps Section */
.featured-apps-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(10, 15, 35, 0.8) 0%, 
        rgba(20, 25, 45, 0.9) 50%, 
        rgba(15, 20, 40, 0.8) 100%);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

/* Cosmic Background Effects */
.featured-apps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 247, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    animation: cosmicFloat 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes cosmicFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.2;
    }
}

/* Header */
.featured-apps-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.featured-apps-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #00f7ff, #ff00f7, #8a2be2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 247, 255, 0.5);
    margin-bottom: 1rem;
}

@keyframes titleGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: brightness(1) drop-shadow(0 0 20px currentColor);
    }
    50% { 
        background-position: 100% 50%;
        filter: brightness(1.3) drop-shadow(0 0 40px currentColor);
    }
}

.featured-apps-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 1rem;
    text-align: center;
    display: block;
    width: 100%;
}

/* Cards Grid */
.featured-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Individual Card */
.featured-app-card {
    position: relative;
    background: rgba(10, 15, 35, 0.7);
    border: 2px solid rgba(0, 247, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 247, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

/* Card Gradient Background */
.card-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 247, 255, 0.1) 0%, 
        rgba(255, 0, 247, 0.1) 50%, 
        rgba(138, 43, 226, 0.1) 100%);
    opacity: 0.3;
    animation: gradientPulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes gradientPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.02);
    }
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* App Title - NIGHT THEME BLACK TITLES */
.app-title {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #000000;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    background-clip: unset;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 1),
        0 0 16px rgba(255, 255, 255, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.9);
    animation: titleShimmer 3s ease-in-out infinite;
    padding: 8px 16px;
    border-radius: 12px;
    border: 3px solid rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.4);
    display: inline-block;
}

@keyframes titleShimmer {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 10px currentColor);
    }
    50% { 
        filter: brightness(1.2) drop-shadow(0 0 20px currentColor);
    }
}

/* App Description */
.app-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-weight: 400;
}

/* App Rating */
.app-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffd700;
    font-size: 1.4rem;
    text-shadow: 0 0 10px currentColor;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px currentColor);
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px currentColor);
    }
}

.rating-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 600;
}

/* App Category */
.app-category {
    display: inline-block;
    background: linear-gradient(45deg, #00f7ff, #ff00f7);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3);
    animation: categoryPulse 3s ease-in-out infinite;
}

@keyframes categoryPulse {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(0, 247, 255, 0.5);
        transform: scale(1.02);
    }
}

/* App Button */
.app-button {
    background: linear-gradient(135deg, #00f7ff, #ff00f7);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 247, 255, 0.4);
    margin-top: auto;
    width: 100%;
}

.app-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.app-button:hover::before {
    left: 100%;
}

.app-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 247, 255, 0.6);
    background: linear-gradient(135deg, #ff00f7, #00f7ff);
}

/* Card Hover Effects */
.featured-app-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 247, 255, 0.4),
        0 0 80px rgba(255, 0, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: #00f7ff;
}

.featured-app-card:hover .card-gradient-bg {
    opacity: 0.6;
    animation: gradientPulse 2s ease-in-out infinite;
}

/* Day Theme Styles */
[data-theme="day"] .featured-apps-section {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.1) 0%, 
        rgba(255, 23, 68, 0.1) 50%, 
        rgba(156, 39, 176, 0.1) 100%);
}

[data-theme="day"] .featured-apps-section::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 107, 53, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 23, 68, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(156, 39, 176, 0.2) 0%, transparent 50%);
}

[data-theme="day"] .featured-apps-title {
    background: linear-gradient(45deg, #ff6b35, #ff1744, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

[data-theme="day"] .featured-apps-subtitle {
    color: rgba(26, 26, 46, 0.8);
}

[data-theme="day"] .featured-app-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 
        0 20px 40px rgba(255, 107, 53, 0.2),
        0 0 30px rgba(255, 23, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="day"] .featured-app-card:hover {
    box-shadow: 
        0 30px 60px rgba(255, 107, 53, 0.3),
        0 0 50px rgba(255, 23, 68, 0.3),
        0 0 80px rgba(156, 39, 176, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #ff6b35;
}

[data-theme="day"] .card-gradient-bg {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(255, 23, 68, 0.2) 50%, 
        rgba(156, 39, 176, 0.2) 100%);
}

[data-theme="day"] .app-title {
    color: #000000 !important;
    background: #000000 !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #000000 !important;
    background-clip: unset !important;
    text-shadow: 
        0 0 4px rgba(255, 255, 255, 1),
        0 0 8px rgba(255, 255, 255, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 12px rgba(255, 255, 255, 0.6);
    border: 3px solid rgba(0, 0, 0, 0.8);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.4);
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

[data-theme="day"] .app-description {
    color: rgba(26, 26, 46, 0.9);
}

[data-theme="day"] .rating-text {
    color: rgba(26, 26, 46, 0.8);
}

[data-theme="day"] .app-category {
    background: linear-gradient(45deg, #ff6b35, #ff1744);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

[data-theme="day"] .app-button {
    background: linear-gradient(135deg, #ff6b35, #ff1744);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

[data-theme="day"] .app-button:hover {
    background: linear-gradient(135deg, #ff1744, #ff6b35);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-apps-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-app-card {
        min-height: 400px;
        padding: 2rem;
    }
    
    .featured-apps-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
    
    .app-description {
        font-size: 0.9rem;
    }
}

/* Performance Optimizations */
.featured-app-card {
    will-change: transform, box-shadow;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .featured-apps-title,
    .app-title,
    .stars,
    .app-category,
    .card-gradient-bg,
    .featured-apps-section::before {
        animation: none !important;
    }
    
    .featured-app-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}
