/* ==============================================
   Front Page Styles
   Profilium Blog Theme - Modern Neon Design
   ============================================== */

/* Front Page Layout */
.front-page {
    background: var(--color-background);
}

.front-page section {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    .front-page section {
        padding: 120px 0;
    }
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
    max-width: 600px;
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: rgba(254, 60, 211, 0.1);
    border: 1px solid rgba(254, 60, 211, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FE3CD3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header__title {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-header__title {
        font-size: 2.5rem;
    }
}

.section-header__description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Featured Posts Section */
.front-page__featured {
    background: var(--color-background);
}

.featured-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .featured-card--large {
        grid-row: span 2;
    }
}

/* Featured Card */
.featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--color-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
}

.featured-card--large {
    min-height: 400px;
}

@media (min-width: 1024px) {
    .featured-card--large {
        min-height: 100%;
    }
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(254, 60, 211, 0.2);
}

.featured-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.featured-card__image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.featured-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-card__image img {
    transform: scale(1.05);
}

.featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 0, 23, 0.95) 0%, rgba(23, 0, 23, 0.6) 40%, rgba(23, 0, 23, 0.2) 100%);
}

.featured-card--large .featured-card__overlay {
    background: linear-gradient(to top, rgba(23, 0, 23, 0.98) 0%, rgba(23, 0, 23, 0.7) 50%, rgba(23, 0, 23, 0.3) 100%);
}

.featured-card__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.featured-card--large .featured-card__content {
    padding: 2rem;
}

@media (min-width: 1024px) {
    .featured-card--large .featured-card__content {
        padding: 2.5rem;
    }
}

.featured-card__category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    width: fit-content;
}

.featured-card__title {
    font-family: var(--font-family-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    line-height: 1.35;
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card--large .featured-card__title {
    font-size: 1.5rem;
    -webkit-line-clamp: 3;
    margin-bottom: 0.875rem;
}

@media (min-width: 768px) {
    .featured-card--large .featured-card__title {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .featured-card--large .featured-card__title {
        font-size: 2rem;
    }
}

.featured-card__excerpt {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .featured-card__excerpt {
        font-size: 1rem;
        -webkit-line-clamp: 3;
    }
}

.featured-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
}

.featured-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.featured-card__date::before {
    content: '';
    display: none;
}

.featured-card__reading-time::before {
    content: '•';
    margin-right: 0.5rem;
}

/* Placeholder for cards without images */
.featured-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    position: relative;
}

.featured-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(254, 60, 211, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 70% 80%, rgba(254, 60, 114, 0.2) 0%, transparent 50%);
}

/* Section CTA */
.section-cta {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(254, 60, 211, 0.3);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(254, 60, 211, 0.4);
    color: white;
}

.btn--glow {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(254, 60, 211, 0.4);
}

.btn--glow:hover {
    box-shadow: 0 8px 40px rgba(254, 60, 211, 0.5);
}

/* Categories Section */
.front-page__categories {
    background: var(--color-background-light);
}

.categories-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Category Card */
.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: rgba(254, 60, 211, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.category-card:hover .category-card__icon {
    background: var(--gradient-primary);
    color: white;
}

.category-card:hover .category-card__arrow {
    transform: translateX(4px);
    color: #FE3CD3;
}

.category-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 60, 211, 0.1);
    border-radius: 14px;
    color: #FE3CD3;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-card__title {
    font-family: var(--font-family-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.125rem;
}

.category-card__count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.category-card__arrow {
    margin-left: auto;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

/* Newsletter Section */
.front-page__newsletter {
    background: var(--color-background);
}

.newsletter-box {
    display: grid;
    gap: 2rem;
    padding: 3rem 2rem;
    background: var(--gradient-hero);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .newsletter-box {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        padding: 4rem;
    }
}

.newsletter-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 50% 80% at 10% 0%, rgba(254, 60, 211, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 40% 60% at 90% 100%, rgba(254, 60, 114, 0.2) 0%, transparent 50%);
}

.newsletter-box__content {
    position: relative;
    z-index: 1;
}

.newsletter-box__badge {
    display: inline-flex;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-box__title {
    font-family: var(--font-family-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .newsletter-box__title {
        font-size: 2rem;
    }
}

.newsletter-box__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.newsletter-box__form {
    position: relative;
    z-index: 1;
}

.newsletter-box__input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
    .newsletter-box__input-wrapper {
        flex-direction: row;
    }
}

.newsletter-box__input-wrapper input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    color: white;
    outline: none;
}

.newsletter-box__input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-box__input-wrapper .btn {
    white-space: nowrap;
}

.newsletter-box__disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .newsletter-box__disclaimer {
        text-align: left;
    }
}
