/**
 * Homepage Specific Styles
 * Hero section, Latest Articles, CTA improvements
 * 
 * @package CreateAI
 */

/* ==========================================
   HOMEPAGE HERO SECTION
   ========================================== */

.homepage-hero-section {
    width: 100%;
    margin: 0 0 var(--section-gap) 0;
    padding-top: 0;
}

.homepage-hero-container {
    width: 100%;
}

.homepage-hero-content {
    background: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: none;
    border-radius: var(--box-border-radius);
    padding: var(--box-padding-desktop);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 24px 64px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(0, 230, 118, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.homepage-hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 30%,
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.25) 70%,
        transparent 100%);
    pointer-events: none;
}

.homepage-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.homepage-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0 0 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.homepage-hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.homepage-hero-btn {
    padding: 1.25rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.homepage-hero-btn-primary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #000;
}

.homepage-hero-btn-primary:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.5), 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.homepage-hero-btn-secondary {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.homepage-hero-btn-secondary:hover {
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* ==========================================
   BRANDS VIEW ALL BUTTON
   ========================================== */

.brands-view-all-container {
    text-align: center;
    margin-top: var(--section-gap);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brands-view-all-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.brands-view-all-btn:hover {
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .latest-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .homepage-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .homepage-hero-section {
        margin-bottom: var(--section-gap-mobile);
    }
    
    .homepage-hero-content {
        padding: var(--box-padding-mobile);
        border-radius: var(--box-border-radius-mobile);
    }
    
    .homepage-hero-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .homepage-hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .homepage-hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .homepage-hero-btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
    }
    
    .brands-view-all-container {
        margin-top: var(--section-gap-mobile);
        padding-top: 1.5rem;
    }
}

/* ==========================================
   ABOUT SECTION (SEO) - Collapsible
   Box informativo in fondo alla homepage
   ========================================== */

.homepage-about-section {
    width: 100%;
    margin: var(--section-gap) 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.homepage-about-box {
    width: 100%;
    max-width: 100%;
    padding: var(--box-padding-desktop);
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.2),
        0 0 70px rgba(0, 230, 118, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.homepage-about-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content - Collapsible */
.homepage-about-content {
    margin: 0;
    position: relative;
    max-height: 300px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.homepage-about-content.expanded {
    max-height: 5000px;
}

.homepage-about-content-inner {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

.homepage-about-content p {
    margin-bottom: 1rem;
}

.homepage-about-content h2,
.homepage-about-content h3 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.homepage-about-content ul,
.homepage-about-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.homepage-about-content li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.homepage-about-content strong {
    color: #ffffff;
    font-weight: 700;
}

.homepage-about-content a {
    color: #4A90E2;
    text-decoration: underline;
}

.homepage-about-content a:hover {
    color: #50E3C2;
}

/* Toggle Button */
.homepage-about-toggle-container {
    text-align: center;
    margin-top: 1.5rem;
}

.homepage-about-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
}

.homepage-about-toggle-btn:hover {
    background: rgba(44, 44, 46, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.about-toggle-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Mobile */
@media (max-width: 768px) {
    .homepage-about-section {
        margin: var(--section-gap-mobile) 0 0 0;
    }
    
    .homepage-about-box {
        padding: var(--box-padding-mobile);
        border-radius: var(--box-border-radius-mobile);
    }
    
    .homepage-about-title {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.25rem;
    }
    
    .homepage-about-content {
        max-height: 250px;
    }
    
    .homepage-about-content-inner {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .homepage-about-toggle-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.75rem;
    }
}

/* ============================================
   FEATURED CATEGORIES SECTION
   ============================================ */

.featured-categories-section {
    margin: var(--section-gap) 0 0 0;
    padding: 0;
}

.featured-categories-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 0 2rem;
    background: rgba(28, 28, 30, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--box-border-radius, 20px);
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.2),
        0 0 70px rgba(0, 230, 118, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.featured-categories-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 2.5rem;
}

.featured-categories-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.featured-categories-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured categories carousel */
.featured-categories-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    width: auto;
    padding: 0.25rem 0 1rem;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 2.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch;
}

.featured-categories-grid::-webkit-scrollbar {
    display: none;
}

.featured-category-card {
    flex: 0 0 240px;
    width: auto;
    min-width: 240px;
    background: rgba(28, 28, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    outline: none;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.featured-category-card,
.featured-category-card:visited,
.featured-category-card:hover,
.featured-category-card:active,
.featured-category-card:focus,
.featured-category-card:focus-visible {
    text-decoration: none;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.featured-category-card:focus-visible {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(255, 255, 255, 0.2);
}

.featured-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 230, 118, 0.2);
    background: rgba(28, 28, 30, 0.68);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.38),
        0 24px 56px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 230, 118, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.featured-category-card:active {
    transform: translateY(-2px) scale(0.985);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(32, 32, 34, 0.76);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.32),
        0 18px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.featured-category-card:active .featured-category-arrow {
    transform: translateX(6px);
    color: rgba(255, 255, 255, 0.96);
}

.featured-category-card:active .featured-category-name,
.featured-category-card:active .featured-category-description,
.featured-category-card:active .featured-category-count,
.featured-category-card:active .featured-category-eyebrow,
.featured-category-card:active .featured-category-eyebrow-icon,
.featured-category-card:focus .featured-category-name,
.featured-category-card:focus .featured-category-description,
.featured-category-card:focus .featured-category-count,
.featured-category-card:focus .featured-category-eyebrow,
.featured-category-card:focus .featured-category-eyebrow-icon,
.featured-category-card:focus-visible .featured-category-name,
.featured-category-card:focus-visible .featured-category-description,
.featured-category-card:focus-visible .featured-category-count,
.featured-category-card:focus-visible .featured-category-eyebrow,
.featured-category-card:focus-visible .featured-category-eyebrow-icon {
    color: inherit;
    text-decoration: none;
    -webkit-text-fill-color: inherit;
}

.featured-category-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.featured-category-eyebrow-icon {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.42);
    flex-shrink: 0;
}

.featured-category-eyebrow-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.featured-category-name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    margin: 0 0 0.75rem 0;
    line-height: 1.15;
    transition: color 0.3s ease;
}

.featured-category-card:hover .featured-category-name {
    color: rgba(255, 255, 255, 1);
}

.featured-category-description {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.64);
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-category-count {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.featured-category-arrow {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.42);
    transition: transform 0.3s ease;
}

.featured-category-card:hover .featured-category-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.9);
}

.featured-category-card:first-child {
    margin-left: 2.5rem;
}

.featured-category-card:last-child {
    margin-right: 2.5rem;
}

/* Tablet */
@media (max-width: 1024px) {
    .featured-categories-grid {
        gap: 1.25rem;
    }
    
    .featured-category-card {
        flex-basis: 220px;
        min-width: 220px;
        padding: 1.75rem 1.25rem;
    }
    
    .featured-category-name {
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .featured-categories-section {
        margin: var(--section-gap-mobile) 0 0 0;
    }

    .featured-categories-container {
        padding: 2rem 0 1.5rem;
        border-radius: var(--box-border-radius-mobile);
        overflow: hidden;
    }

    .featured-categories-header {
        margin-bottom: 1.75rem;
        padding: 0 2rem;
    }

    .featured-categories-title {
        font-size: 1.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.75rem;
    }

    .featured-categories-subtitle {
        font-size: 1rem;
    }

    .featured-categories-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        width: auto;
        padding: 0 0 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-padding-inline: 2rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .featured-categories-grid::-webkit-scrollbar {
        display: none;
    }

    .featured-category-card {
        flex: 0 0 min(72vw, 220px);
        width: auto;
        min-width: min(72vw, 220px);
        padding: 1.1rem 1rem;
        scroll-snap-align: start;
    }

    .featured-category-card:first-child {
        margin-left: 2rem;
    }

    .featured-category-card:last-child {
        margin-right: 2rem;
    }

    .featured-category-card:hover {
        transform: translateY(-4px);
    }

    .featured-category-card:active {
        transform: translateY(-1px) scale(0.985);
    }

    .featured-category-eyebrow {
        margin-bottom: 0.7rem;
        font-size: 0.62rem;
    }

    .featured-category-eyebrow-icon {
        width: 0.8rem;
        height: 0.8rem;
    }

    .featured-category-name {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .featured-category-description {
        font-size: 0.8rem;
        margin-bottom: 0.9rem;
        -webkit-line-clamp: 5;
    }

    .featured-category-meta {
        padding-top: 0.6rem;
    }

    .featured-category-count {
        font-size: 0.8rem;
    }
}

