/* ===== MINIMALIST HOME STYLE ===== */
.minimal-home {
    font-family: var(--font-sans);
}

/* ===== HERO SECTION - Using Design System ===== */
.minimal-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4rem 0 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.minimal-hero .hero-background {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="20" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
    z-index: 1;
}

.minimal-hero .container {
    position: relative;
    z-index: 2;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.minimal-hero .minimal-btn {
    background: white;
    color: var(--primary);
}

.minimal-hero .minimal-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.minimal-hero .minimal-btn.primary {
    background: #fbbf24;
    color: var(--dark);
}

.minimal-hero .minimal-btn.primary:hover {
    background: #f59e0b;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat .number {
    font-size: 1.75rem;
}

.hero-stats .stat .label {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

/* ===== CONTENT LAYOUT ===== */
.minimal-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .minimal-content {
        grid-template-columns: 2fr 1fr;
    }
}

/* ===== SECTIONS ===== */
.minimal-section {
    margin-bottom: 3rem;
}

.minimal-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 1.5rem 0;
    color: var(--dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
}

.view-more {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
}

.view-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* ===== FEATURES ===== */
.features-minimal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-minimal {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-minimal:hover {
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-info h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.feature-info p {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* ===== BOOKS GRID - Home specific center alignment ===== */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.books-grid .book-card-info {
    text-align: center;
}

.books-grid .book-card-info h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.books-grid .book-card-info p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.books-grid .book-card-meta {
    justify-content: center;
}

.no-books {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

.no-books i {
    font-size: 3rem;
    color: var(--gray-200);
    margin-bottom: 1rem;
}

/* ===== INFO BOX - Sidebar ===== */
.info-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.info-box-link {
    font-size: var(--font-size-sm);
    color: var(--primary);
    text-decoration: none;
}

.info-box-link:hover {
    text-decoration: underline;
}

/* ===== CTA SECTION ===== */
.minimal-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 12px;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-container h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin: 0 0 1rem 0;
    color: var(--dark);
}

.cta-container p {
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .hero-stats {
        justify-content: space-around;
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .minimal-btn {
        width: 100%;
        justify-content: center;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .minimal-btn {
        width: 100%;
        justify-content: center;
    }
}

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .feature-minimal {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }
}
