/* Book-specific styling enhancements */
.book-contents ol {
    list-style: none !important;
    list-style-type: none !important;
    counter-reset: chapter-counter;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.book-contents-second ol {
    counter-reset: chapter-counter 9; /* Start from 9, so first increment makes it 10 */
}

.book-contents li {
    counter-increment: chapter-counter;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary-green);
    transition: all var(--transition-duration) ease;
    position: relative;
    list-style: none !important;
    list-style-type: none !important;
}

.book-contents li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.book-contents li::before {
    content: counter(chapter-counter) ". ";
    font-weight: bold;
    color: var(--color-primary-green);
    margin-right: 0.5rem;
}

.ai-book-cover {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-duration) ease;
}

.ai-book-cover:hover {
    transform: scale(1.05);
}

/* Ensure hero content is properly centered */
.hero.ai-hero-professional {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Editor styling in hero */
.ai-editor-label {
    color: var(--color-purple-dark-bg);
    font-weight: 500;
}

/* Custom tab styling for book page */
.tabs.is-centered.is-large.is-boxed {
    margin-bottom: 2rem;
}

.tabs.is-centered.is-large.is-boxed ul {
    border-bottom: 2px solid var(--color-primary-green);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem 0.5rem 0 0.5rem;
}

.tabs.is-centered.is-large.is-boxed li {
    margin-bottom: 0;
}

.tabs.is-centered.is-large.is-boxed li a {
    color: var(--color-primary-green) !important;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-duration) ease;
    position: relative;
    overflow: hidden;
}

.tabs.is-centered.is-large.is-boxed li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tabs.is-centered.is-large.is-boxed li a:hover::before {
    left: 100%;
}

.tabs.is-centered.is-large.is-boxed li a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-primary-green-light);
    color: var(--color-primary-green-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 216, 221, 0.3);
}

.tabs.is-centered.is-large.is-boxed li.is-active a {
    border-color: var(--color-primary-green-light);
    color: var(--color-primary-green-light) !important;
    box-shadow: 0 4px 15px rgba(0, 138, 164, 0.4);
    transform: translateY(-2px);
}



.tabs.is-centered.is-large.is-boxed li a .icon {
    margin-right: 0.5rem;
    transition: transform var(--transition-duration) ease;
}

.tabs.is-centered.is-large.is-boxed li a:hover .icon {
    transform: scale(1.1);
}

.tabs.is-centered.is-large.is-boxed li.is-active a .icon {
    transform: scale(1.1);
}
