/* Homepage Specific Styles */

/* Hero Section */
.hero-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    padding: 5rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.hero-app-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-app-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-app-card .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-app-card .app-name {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-app-card .app-category {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Category Sections */
.featured-categories {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.category-section {
    padding: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.view-all-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.view-all-btn:hover {
    background: var(--background-secondary);
    border-color: var(--primary-color);
}

/* Weather Apps - Grid Layout */
.weather-section {
    /* Clean design without background */
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.app-card-grid {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.app-card-grid:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.app-card-grid .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
}

.app-card-grid .app-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.app-card-grid .app-publisher {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.app-card-grid .app-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Health & Fitness Apps - Card Layout */
.health-section {
    /* Clean design without background */
}

.apps-cards {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.app-card-health {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
}

.app-card-health:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.app-card-health .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-medium);
}

.app-card-health .app-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.app-card-health .app-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.app-card-health .app-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Entertainment Apps - Carousel Layout */
.entertainment-section {
    /* Clean design without background */
}

.apps-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.app-card-carousel {
    min-width: 200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
}

.app-card-carousel:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.app-card-carousel .app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-light);
}

.app-card-carousel .app-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.app-card-carousel .app-rating {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Food & Drink Apps - List Layout */
.food-section {
    /* Clean design without background */
}

.apps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-card-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.app-card-list:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

.app-card-list .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
}

.app-card-list .app-info {
    flex: 1;
}

.app-card-list .app-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.app-card-list .app-publisher {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.app-card-list .app-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Shopping Apps - Featured Layout */
.shopping-section {
    /* Clean design without background */
}

.apps-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.featured-main {
    background: var(--background-primary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.featured-main:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-heavy);
}

.featured-main .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-medium);
}

.featured-main .app-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.featured-main .app-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.featured-main .app-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-item {
    background: var(--background-primary);
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.featured-item:hover {
    box-shadow: var(--shadow-medium);
}

.featured-item .app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.featured-item .app-info {
    flex: 1;
}

.featured-item .app-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.featured-item .app-rating {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Responsive Design for Homepage */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1.5rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 3rem 0;
        margin-bottom: 2rem;
        margin-left: calc(-50vw + 50%);
        width: 100vw;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-apps {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .featured-categories {
        gap: 2.5rem;
    }

    .category-section {
        padding: 1.5rem;
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .category-header h2 {
        font-size: 1.5rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .apps-cards {
        gap: 1rem;
    }

    .app-card-health {
        min-width: 280px;
        padding: 1.5rem;
    }

    .apps-carousel {
        gap: 0.75rem;
    }

    .app-card-carousel {
        min-width: 160px;
        padding: 0.75rem;
    }

    .apps-featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-main {
        padding: 1.5rem;
    }

    .featured-main .app-icon {
        width: 80px;
        height: 80px;
    }

    .featured-main .app-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-section {
        padding: 2rem 0;
        margin-bottom: 1.5rem;
    }

    .featured-categories {
        gap: 2rem;
    }

    .category-section {
        padding: 0;
    }

    .category-header h2 {
        font-size: 1.25rem;
    }

    .app-card-grid {
        padding: 1rem;
    }

    .app-card-health {
        min-width: 250px;
        padding: 1rem;
    }

    .app-card-health .app-icon {
        width: 60px;
        height: 60px;
    }

    .app-card-carousel {
        min-width: 140px;
        padding: 0.5rem;
    }

    .app-card-carousel .app-icon {
        width: 48px;
        height: 48px;
    }

    .app-card-list {
        padding: 1rem;
        gap: 1rem;
    }

    .app-card-list .app-icon {
        width: 48px;
        height: 48px;
    }

    .featured-main {
        padding: 1rem;
    }

    .featured-main .app-icon {
        width: 60px;
        height: 60px;
    }

    .featured-main .app-name {
        font-size: 1.1rem;
    }
}
