/**
 * Academy AI Styles
 * Knowledge hub with Solutions-style gradient hero
 */

/* ===================================================================
   HERO SECTION - Solutions-style gradient
   =================================================================== */

.academy-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e293b 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Category pages with icon - reduced padding to match hub page height */
.page-academy-category .academy-hero {
    padding: 50px 0 40px;
}

.academy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.academy-hero__content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.academy-hero__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.academy-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.academy-hero__title .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.academy-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    word-break: normal;
}

/* ===================================================================
   MAIN PAGE - Categories Grid
   =================================================================== */

.academy-categories {
    padding: 80px 0;
    background: #f8fafc;
}

.academy-categories__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.academy-categories__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.academy-categories__subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.academy-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Category Cards */
.academy-category-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.academy-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, currentColor, currentColor);
    opacity: 0;
    transition: opacity 0.3s;
}

.academy-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.academy-category-card:hover::before {
    opacity: 1;
}

.academy-category-card__icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
}

.academy-category-card__content {
    margin-bottom: 24px;
}

.academy-category-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.academy-category-card__subtitle {
    font-size: 0.875rem;
    color: #0ea5e9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 16px;
}

.academy-category-card__description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.academy-category-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 16px;
}

.academy-category-card__count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.academy-category-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0ea5e9;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.academy-category-card__link:hover {
    gap: 12px;
}

.academy-category-card__link svg {
    transition: transform 0.3s;
}

.academy-category-card:hover .academy-category-card__link svg {
    transform: translateX(4px);
}

/* ===================================================================
   CATEGORY PAGE - Articles Grid
   =================================================================== */

.academy-articles {
    padding: 80px 0;
    background: white;
}

.academy-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.academy-articles__empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.academy-articles__empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.academy-articles__empty h3 {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 12px;
}

.academy-articles__empty p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Article Card (for future articles) */
.academy-article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.academy-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.academy-article-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.academy-article-card__content {
    padding: 24px;
}

.academy-article-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.academy-article-card__excerpt {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.academy-article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ===================================================================
   CTA SECTION
   =================================================================== */

.academy-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #1e293b 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.academy-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.academy-cta__content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

.academy-cta__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.academy-cta__subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.academy-cta .btn--primary {
    background: white;
    color: #0ea5e9;
    font-weight: 600;
    padding: 16px 40px;
    font-size: 1.125rem;
}

.academy-cta .btn--primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {
    .academy-hero {
        padding: 60px 0 40px;
    }
    
    .academy-hero__title {
        font-size: 2rem;
    }
    
    .academy-hero__subtitle {
        font-size: 1rem;
    }
    
    .academy-hero__icon {
        font-size: 3rem;
    }
    
    .academy-categories {
        padding: 60px 0;
    }
    
    .academy-categories__title {
        font-size: 2rem;
    }
    
    .academy-categories__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .academy-category-card {
        padding: 32px 24px;
    }
    
    .academy-cta {
        padding: 60px 0;
    }
    
    .academy-cta__title {
        font-size: 2rem;
    }
}
/* ===================================================================
   CATEGORY PAGES - Introduction & Articles List
   =================================================================== */

.academy-intro {
    padding: 60px 0;
    background: #ffffff;
}

.academy-intro__content {
    max-width: 900px;
    margin: 0 auto;
}

.academy-intro__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569;
    text-align: center;
    font-style: italic;
    padding: 0 20px;
    position: relative;
    border-left: 4px solid #0ea5e9;
    padding-left: 32px;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    word-break: normal;
}

.academy-articles {
    padding: 80px 0;
    background: #f8fafc;
}

.academy-articles__header {
    text-align: center;
    margin-bottom: 48px;
}

.academy-articles__header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.academy-articles__list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.academy-article-item {
    background: white;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.academy-article-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-left-color: #0ea5e9;
}

.academy-article-item--published {
    cursor: pointer;
}

.academy-article-item--published:hover {
    border-left-color: #10b981;
}

.academy-article-item__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.academy-article-item__link:hover .academy-article-item__title {
    color: #0ea5e9;
}

.academy-article-item__number {
    font-size: 2rem;
    font-weight: 700;
    color: #e2e8f0;
    min-width: 60px;
    text-align: center;
    line-height: 1;
}

.academy-article-item__content {
    flex: 1;
}

.academy-article-item__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.academy-article-item__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #94a3b8;
    font-style: italic;
}

.academy-article-item__status i {
    color: #0ea5e9;
}

.academy-article-item__status--available {
    color: #10b981;
    font-style: normal;
    font-weight: 500;
}

.academy-article-item__status--available i {
    color: #10b981;
}

@media (max-width: 768px) {
    .academy-intro {
        padding: 40px 0;
    }
    
    .academy-intro__text {
        font-size: 1rem;
        padding-left: 20px;
        border-left-width: 3px;
    }
    
    .academy-articles {
        padding: 60px 0;
    }
    
    .academy-articles__header h2 {
        font-size: 1.75rem;
    }
    
    .academy-article-item {
        padding: 24px;
        gap: 16px;
    }
    
    .academy-article-item__number {
        font-size: 1.5rem;
        min-width: 40px;
    }
    
    .academy-article-item__title {
        font-size: 1.125rem;
    }
}