/* Wizard Page Styling - Compact Version */

/* Wizard Hero - Reduced padding */
.wizard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0; /* Was likely 4rem+ */
    text-align: center;
}

.wizard-hero h1 {
    font-size: 2rem; /* Smaller heading */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.wizard-hero .lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Wizard Container - Compact spacing */
.wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem; /* Reduced from likely 3rem+ */
}

/* Wizard Content - Tighter layout */
.wizard-content {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem; /* Reduced */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Intro Card - Compact */
.wizard-intro {
    margin-bottom: 1.5rem; /* Reduced */
}

.intro-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 0.75rem;
    padding: 1.5rem; /* Reduced from 2rem+ */
    margin-bottom: 1.5rem;
}

.intro-icon {
    font-size: 2.5rem; /* Smaller icon */
    color: #667eea;
    margin-bottom: 0.75rem;
}

.intro-card h3 {
    font-size: 1.3rem; /* Smaller heading */
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.intro-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.intro-card li {
    padding: 0.4rem 0; /* Reduced spacing */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.intro-card li i {
    color: #48bb78;
    font-size: 1.1rem;
}

/* Wizard Steps - Compact grid */
.wizard-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem; /* Reduced gap */
    margin-bottom: 1.5rem;
}

.step-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem; /* Reduced */
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.step-number {
    width: 2rem; /* Smaller */
    height: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 auto 0.5rem;
}

.step-card h4 {
    font-size: 0.9rem; /* Smaller */
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #2d3748;
}

.step-card p {
    font-size: 0.75rem; /* Smaller */
    color: #718096;
    margin: 0;
}

/* Start Button - Compact */
.wizard-start {
    text-align: center;
    margin: 1.5rem 0; /* Reduced */
}

.btn-start-wizard {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem; /* Smaller padding */
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-start-wizard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-start-wizard i {
    margin-right: 0.5rem;
}

.wizard-time {
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

/* Benefits - Compact grid */
.wizard-benefits {
    margin-top: 1.5rem; /* Reduced */
}

.wizard-benefits h3 {
    text-align: center;
    font-size: 1.3rem; /* Smaller */
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; /* Reduced */
}

.benefit-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 0.75rem;
    padding: 1.25rem; /* Reduced */
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-card i {
    font-size: 2rem; /* Smaller icon */
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.benefit-card h4 {
    font-size: 1rem; /* Smaller */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.benefit-card p {
    font-size: 0.85rem; /* Smaller */
    color: #4a5568;
    margin: 0;
}

/* Text Steps (Goals & Current Situation) - Compact */
.wizard-text-step {
    padding: 2rem 0; /* Reduced from likely 3-4rem */
}

/* Questions Step - Compact */
.wizard-questions-step {
    padding: 1.5rem 0; /* Reduced */
}

/* Books Step - Compact */
.wizard-books-step {
    padding: 2rem 0; /* Reduced */
}

/* Already Read Books Grid - Cover Only Style (same as /books page) */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.books-grid h5 {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.book-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.book-card.selected {
    box-shadow: 0 0 0 3px #48bb78;
}

.book-card.selected:hover {
    box-shadow: 0 0 0 3px #48bb78, 0
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Already Read Books Grid - Specific styling */
.already-read-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.already-read-book-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.already-read-book-card:hover {
    transform: translateY(-5px);
}

.already-read-book-card.selected .book-cover-container {
    box-shadow: 0 0 0 3px #48bb78;
    border-radius: 0.5rem;
}

.book-cover-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    background: #f7fafc;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    color: #a0aec0;
    font-size: 3rem;
}

.selected-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(72, 187, 120, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #48bb78;
}

.book-title-small {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #2d3748;
    text-align: center;
    line-height: 1.3;
}

.book-author-small {
    font-size: 0.75rem;
    color: #718096;
    text-align: center;
    margin-top: 0.25rem;
}

/* Sticky Footer for "Already Read Books" step */
.wizard-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #e2e8f0;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.wizard-sticky-footer .btn {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.wizard-sticky-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.wizard-sticky-footer .badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wizard-sticky-footer {
        padding: 0.75rem 0;
    }
    
    .wizard-sticky-footer .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
    
    .wizard-sticky-footer .text-muted {
        font-size: 0.75rem;
    }
}
