/* Main CSS file for the public interface */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    padding: 0.5rem 1rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    list-style: none;
}

.nav-link {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

.navbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* Burger Menu Icon */
.burger-menu-icon {
    border: none;
    background: transparent;
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.burger-menu-icon:focus {
    outline: none;
    box-shadow: none;
}

/* Offcanvas Navigation Menu */
.offcanvas-start {
    width: 250px;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-body .navbar-nav {
    flex-direction: column;
}

.offcanvas-body .nav-item {
    width: 100%;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Search icon */
.search-icon {
    padding: 0.5rem;
    margin-right: 0.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.search-icon:hover {
    color: #007bff;
}

/* Settings icon */
.settings-icon {
    padding: 0.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.settings-icon:hover {
    color: #007bff;
}

/* Settings Offcanvas Styles */
.offcanvas {
    background-color: #fff;
    color: #333;
}

.settings-h6-label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.settings-btn-group .btn {
    border-radius: 6px;
    font-weight: 300;
    transition: all 0.2s ease;
}

.settings-btn-group .active {
    background-color: #e6e6e6;
    color: #333;
}

.settings-selection-set-btn {
    border: 1px solid #818181;
    color: #818181;
    background-color: transparent;
}

.settings-selection-set-btn:hover {
    background-color: #e6e6e6;
    color: #333;
}

.settings-hr {
    border-color: #818181;
    margin: 1.5rem 0;
}

.settings-font-size-row__grid {
    display: grid;
    grid-template-columns: 70% 10% 10% 10%;
    gap: 0;
    width: 100%;
    margin: 0;
    padding-left: 10px;
}

.settings-font-size-display-size-box {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
    color: #818181;
    padding: 0.375rem 0.75rem;
    font-size: 18px;
    border: 1px solid transparent;
    border-radius: 0;
}

.settings-font-size-label {
    display: inline-block;
    font-weight: 400;
    text-align: left;
    color: #818181;
    font-size: 16px;
}

.settings-minus-plus-button {
    color: #818181;
    font-size: 25px;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.settings-minus-plus-button:hover {
    background-color: #e6e6e6;
}

.settings-minus-plus-button:active {
    background-color: #d4d4d4;
}

.general_centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.settings-sample-verse {
    color: #333;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 25px;
    background-color: #fff;
}

/* Font Styles */
.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.font-open-sans {
    font-family: 'Open Sans', sans-serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

.font-merriweather {
    font-family: 'Merriweather', serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Font Classes for Body */
body.font-roboto {
    font-family: 'Roboto', sans-serif;
}

body.font-open-sans {
    font-family: 'Open Sans', sans-serif;
}

body.font-lato {
    font-family: 'Lato', sans-serif;
}

body.font-merriweather {
    font-family: 'Merriweather', serif;
}

body.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Main content area */
.main-content {
    padding: 2rem 0;
}

/* Article page styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.page-content {
    margin-bottom: 2rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: #343a40;
}

.back-link i {
    margin-right: 0.5rem;
}

/* Page cards */
.page-card {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.page-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

.page-card .card-body {
    padding: 1.5rem;
}

.page-content {
    max-height: 300px;
    overflow: hidden;
    position: relative;
}

.page-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.page-meta {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Error page styles */
.error-container {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #343a40;
}

.error-description {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
    }
    
    .navbar-right {
        margin-left: auto;
        margin-right: 0;
    }
    
    .navbar-brand {
        margin-right: auto;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    /* Only apply flex to the navbar container, not all containers */
    .navbar .container {
        display: flex;
        align-items: center;
    }
}
