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

/* ==========================================
   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 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    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.1) 50%, 
        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.3);
}

.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;
    }
}

