/* @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); */

/* base font */
/* body .book.font-family-1, .book-summary {
    font-family: Inter, Source Sans Pro, Helvetica Neue, Arial, sans-serif;
} */

/* hide the "published by gitbook" footer */
.gitbook-link {
    visibility: hidden;
    pointer-events: none;
    height: 20px;
}

/* sidebar scroll beautification */
.book-summary::-webkit-scrollbar {
    width: 10px;
}
.book-summary::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}
.book-summary:hover::-webkit-scrollbar-thumb {
    background: hsla(0,0%,53%,.4);
}
.book-summary:hover::-webkit-scrollbar-track {
    background: hsla(0,0%,53%,.1);
}

/* sidebar items */
.book-summary ul.summary li a, .book-summary ul.summary li span {
    text-overflow: initial;
    white-space: normal;
    line-height: 1.4em;
    padding: 9px 10px 9px 6px;
}
.book-summary ul.summary li.chapter {
    position: relative;
    padding-left: 10px;
}

/* header navbar */
.book-header {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.book.color-theme-1 .book-header {
    background-color: #F3EACB;
}

.book.color-theme-2 .book-header {
    background-color: hsl(228, 21%, 14%);
}

.book-header h1 {
    padding-left: 0px !important;
    margin: 0;
}

/* home button styles */
.home-button {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.home-button img {
    height: 30px;
    width: auto;
}

.site-label {
    margin-left: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.book.color-theme-2 .site-label {
    color: #fff;
}

/* content */
.page-wrapper {
    padding-top: 50px;
}

/* Social Share Buttons */
.social-share {
    padding: 20px;
}

.social-share h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.share-button:hover {
    opacity: 0.9;
    color: white;
}

.share-button i {
    margin-right: 8px;
}

.share-button.facebook {
    background-color: #1877f2;
}

.share-button.whatsapp {
    background-color: #25d366;
}

.share-button.twitter {
    background-color: #1da1f2;
}

/* Share Dropdown */
.share-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

.share-dropdown .share-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-dropdown .share-button:hover {
    opacity: 0.8;
}

.share-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
}

.share-dropdown-content.show {
    display: block;
}

.share-option {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.share-option:hover {
    background-color: #f5f5f5;
}

.share-option i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

.share-option.facebook {
    color: #1877f2;
}

.share-option.whatsapp {
    color: #25d366;
}

.share-option.twitter {
    color: #000000;
}

/* Dark theme adjustments */
.book.color-theme-2 .share-dropdown-content {
    background-color: hsl(228, 21%, 14%);
}

.book.color-theme-2 .share-option {
    color: #fff;
}

.book.color-theme-2 .share-option:hover {
    background-color: hsl(228, 21%, 20%);
}
