/* Study Header Styles */
.study-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
}

.study-header-content,
.study-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--global-width, 1200px);
    margin: 0 auto;
    width: 100%;
}

.study-header-left,
.study-header-right,
.study-footer-left,
.study-footer-right {
    min-width: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.study-header-center,
.study-footer-center {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.study-title-group {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 1rem;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(246, 246, 246, 0.30);
	backdrop-filter: blur(10px);
    border-radius: 8px;
}

.divider {
    margin: 0 0.5em;
    color: var(--color-text);
    font-weight: normal;
}

.study-title-header {
    margin: 0;
    font-size: 1rem;
    font-weight: normal;
}

.study-title-header a {
    text-decoration: none;
    color: inherit;
}

.study-close {
    font-size: 2rem;
    text-decoration: none;
    color: inherit;
    padding: 0 0.5rem 0 0.5rem;
    line-height: 1;
}

/* Study Footer Styles */
.study-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0 2rem 0;
}

.study-footer-left,
.study-footer-right {
    flex: 0 0 auto;
    padding: 0.5rem 1rem 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.30);
	backdrop-filter: blur(10px);
    border-radius: 10px;
}

.study-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--global-width);
    margin: 0 auto;
}

.study-info {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 1rem;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(246, 246, 246, 0.30);
	backdrop-filter: blur(8px);
    border-radius: 8px;
}

.study-count {
    font-weight: 700;
    color: var(--color-text);
    margin-left: 0.5em;
}

.study-nav-prev,
.study-nav-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
    font-weight: 500;
}

.circle {
    display: inline-block;
    border: 1px solid #000;
    border-radius: 10px;
    margin-bottom: 5px;
    padding: 3px 1em 3px 1em;
}

/* Remove red backgrounds from all nav/buttons */
.study-nav-prev.white-box,
.study-nav-next.white-box,
.study-close.white-box,
.fullscreen-toggle.white-box {
    color: var(--color-text);
}

/* Fullscreen Styles */
.study-container:fullscreen {
    background: var(--color-background);
}


/* Mobile Styles */
@media (max-width: 768px) {
    .study-header,
    .study-footer {
        position: relative;
    }
    .study-header-content,
    .study-footer-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .study-title-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .study-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    .white-box {
        width: 100%;
        justify-content: center;
    }
}

.study-header-right .study-close.white-box {
    height: auto;
    min-width: calc(2rem + 1rem);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    vertical-align: middle;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    background: rgba(246, 246, 246, 0.30);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    transform: translateY(-2px); 
}

.study-footer-right {
    flex: 0 0 auto;
    padding: 0.5rem 1rem 0.5rem 1rem;
    background: rgba(246, 246, 246, 0.30);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
}

.study-header-right .study-close.white-box .close-x {
    display: inline-block;
    transform: translateY(-3px);
}

.study-header-left .fullscreen-toggle.white-box {
    height: auto;
    min-width: calc(2rem + 1rem);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    vertical-align: middle;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    background: rgba(246, 246, 246, 0.30);
    backdrop-filter: blur(10px);
    border-radius: 50%;
}

.study-header-left .fullscreen-toggle.white-box .expand-icon,
.study-header-left .fullscreen-toggle.white-box .shrink-icon {
    display: inline-block;
    /* Add vertical adjustment if needed: */
    /* transform: translateY(-1px); */
}

.study-footer-right .footer-circle-icon {
    display: inline-block;
    transform: translateY(2px);
}

.study-footer-right .study-nav-next {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.study-footer-right .study-nav-next span {
    display: inline-block;
}

.study-footer-left .footer-circle-icon {
    display: inline-block;
    transform: translateY(2px);
}

.white-box.study-title-group,
.white-box.study-info {
    padding: 0.5rem 1rem 0.5rem 1rem;
} 