/**
 * Pages CSS - All page-specific styles
 * Extracted from inline styles for better performance and maintainability
 */

/* ==========================================
   COMMON PAGE ELEMENTS
   ========================================== */
.page-header-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.page-title {
    color: #122E5B;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
}

.page-content-wrapper {
    margin-bottom: 40px;
}

.page-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.alert-no-content {
    max-width: 600px;
    margin: 50px auto;
}

.text-center-message {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
}

/* ==========================================
   PACKAGE DETAIL PAGE
   ========================================== */
.package-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.package-detail-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.package-rating-section {
    margin-bottom: 20px;
}

.package-stars {
    color: #FFD700;
    font-size: 1.5rem;
}

.package-star-label {
    color: #666;
    margin-left: 10px;
}

.package-meta-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.package-description-content {
    line-height: 1.8;
    color: #333;
}

.package-price-section {
    margin-bottom: 20px;
    text-align: center;
}

.package-cta-title {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.package-cta-text {
    margin-bottom: 20px;
}

.package-cta-button {
    width: 100%;
    text-align: center;
}

.package-contact-divider {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-section-title {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.contact-info-wrapper {
    line-height: 2;
}

.contact-section-bg {
    background-color: #f8f9fa;
}

.contact-content-centered {
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-section-no-padding-bottom {
    padding-bottom: 0;
}

.about-image-wrapper {
    margin-bottom: 40px;
}

.about-section-bg {
    background-color: #f8f9fa;
}

.about-content-centered {
    max-width: 1000px;
    margin: 0 auto;
}

.about-main-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.about-intro-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-sub-title {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.about-list {
    font-size: 1.05rem;
    line-height: 2;
}

.about-commitment-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ==========================================
   HOME PAGE CATEGORY SECTIONS
   ========================================== */
.category-section-title {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.category-section-title-with-top-margin {
    color: var(--secondary-color);
    margin: 50px 0 30px;
}

/* ==========================================
   ERROR PAGES (404, 500)
   ========================================== */
.error-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-code {
    font-size: 6rem;
    color: #B87333;
    margin-bottom: 20px;
}

.error-title {
    font-size: 2rem;
    color: #122E5B;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

/* ==========================================
   FILTERS SECTION
   ========================================== */
.filters-section {
    padding: 40px 0;
    background: #f8f9fa;
}

/* ==========================================
   TOPBAR INLINE FIXES
   ========================================== */
.topbar-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-divider {
    margin: 0 15px;
}

/* ==========================================
   CHILD PAGE CARDS (Universal Page)
   ========================================== */
.child-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.child-page-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 2px solid rgba(184, 115, 51, 0.1);
}

.child-page-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-gold);
}

.child-page-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.child-page-card-body {
    padding: 25px;
}

.child-page-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.child-page-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.child-page-card .read-more-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.child-page-card .read-more-link:hover {
    color: var(--light-gold);
    gap: 12px;
}

/* ==========================================
   DASHBOARD STYLES
   ========================================== */
.user-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
}

.table-id-column {
    width: 50px;
}

.table-date-column {
    width: 120px;
}

.table-actions-column {
    width: 150px;
    text-align: center;
}

.table-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.table-logo-small {
    max-width: 100px;
    margin-top: 10px;
}

.table-logo-medium {
    max-width: 150px;
    margin-top: 10px;
}

.badge-level {
    font-size: 0.7em;
    margin-left: 0.5rem;
}

.settings-logo-preview {
    max-height: 80px;
}

.settings-favicon-preview {
    max-height: 48px;
}

.package-search-input {
    width: 250px;
}

.form-image-preview {
    max-width: 200px;
    border-radius: 8px;
}

/* Scrollable Checkboxes Containers */
.scrollable-checkbox-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.scrollable-checkbox-container-small {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.scrollable-checkbox-container-medium {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 4px;
}

.scrollable-checkbox-container-tiny {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 4px;
}

.package-item-card {
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    margin-bottom: 1rem;
}

.package-label-clickable {
    cursor: pointer;
    display: block;
    width: 100%;
}

.shortcode-code-display {
    font-size: 0.85rem;
    color: #666;
}

/* ==========================================
   MAINTENANCE PAGE
   ========================================== */
.maintenance-footer-text {
    font-size: 14px;
    color: #999;
}

/* ==========================================
   SETUP CHECK PAGE
   ========================================== */
.setup-intro-text {
    margin-bottom: 30px;
    color: #666;
}

.setup-success-box {
    margin-top: 30px;
    padding: 20px;
    background: #d4edda;
    border-radius: 5px;
    text-align: center;
}

.setup-success-title {
    color: #155724;
    margin-bottom: 10px;
}

.setup-success-text {
    color: #155724;
}

.setup-error-box {
    margin-top: 30px;
    padding: 20px;
    background: #f8d7da;
    border-radius: 5px;
    text-align: center;
}

.setup-error-title {
    color: #721c24;
    margin-bottom: 10px;
}

.setup-error-text {
    color: #721c24;
}

.setup-divider {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.setup-links-box {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.setup-links-title {
    margin-bottom: 10px;
}

.setup-links-list {
    line-height: 2;
}

.setup-link {
    color: #B87333;
}

.setup-footer {
    margin-top: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* ==========================================
   TEST/DEBUG PAGES
   ========================================== */
.debug-success-text {
    color: green;
}

.debug-error-text {
    color: red;
}

.debug-indent {
    margin-left: 30px;
}

/* ==========================================
   WIDGET FORM INLINE ACTION
   ========================================== */
.inline-form-action {
    display: inline;
}

/* ==========================================
   HIDDEN ELEMENTS
   ========================================== */
.hidden-item {
    display: none;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    .package-meta-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .child-pages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
