/**
 * Custom Pages CSS for WHMCS Template
 * This file contains styling for custom pages created through the page manager
 */

/* ===========================
   Custom Page Container
   =========================== */
.custom-page {
    padding: 2rem 0;
}

.custom-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.custom-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.custom-page-meta {
    color: #666;
    font-size: 0.95rem;
}

.custom-page-meta span {
    margin-right: 1.5rem;
}

.custom-page-meta i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* ===========================
   Custom Page Content
   =========================== */
.custom-page-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.custom-page-content h1,
.custom-page-content h2,
.custom-page-content h3,
.custom-page-content h4,
.custom-page-content h5,
.custom-page-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.custom-page-content h1 {
    font-size: 2.25rem;
}

.custom-page-content h2 {
    font-size: 2rem;
}

.custom-page-content h3 {
    font-size: 1.75rem;
}

.custom-page-content h4 {
    font-size: 1.5rem;
}

.custom-page-content p {
    margin-bottom: 1.25rem;
}

.custom-page-content ul,
.custom-page-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.custom-page-content li {
    margin-bottom: 0.5rem;
}

.custom-page-content a {
    color: #007bff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.custom-page-content a:hover {
    border-bottom-color: #007bff;
}

.custom-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-page-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.custom-page-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

.custom-page-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.custom-page-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.custom-page-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.custom-page-content table th,
.custom-page-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.custom-page-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.custom-page-content table tr:hover {
    background: #f8f9fa;
}

/* ===========================
   Custom Page Sidebar
   =========================== */
.custom-page-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.custom-page-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.custom-page-sidebar ul {
    list-style: none;
    padding: 0;
}

.custom-page-sidebar li {
    margin-bottom: 0.75rem;
}

.custom-page-sidebar a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.custom-page-sidebar a:hover {
    background: white;
    color: #007bff;
    padding-left: 1rem;
}

.custom-page-sidebar a.active {
    background: #007bff;
    color: white;
}

/* ===========================
   Custom Page Navigation
   =========================== */
.custom-page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.custom-page-nav-item {
    flex: 1;
    max-width: 45%;
}

.custom-page-nav-item.next {
    text-align: right;
}

.custom-page-nav-link {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.custom-page-nav-link:hover {
    background: #007bff;
    color: white;
    transform: translateX(5px);
}

.custom-page-nav-item.prev .custom-page-nav-link:hover {
    transform: translateX(-5px);
}

.custom-page-nav-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.custom-page-nav-link:hover .custom-page-nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.custom-page-nav-title {
    font-weight: 600;
}

/* ===========================
   Breadcrumb Enhancement
   =========================== */
.custom-page-breadcrumb {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.custom-page-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.custom-page-breadcrumb li {
    display: flex;
    align-items: center;
}

.custom-page-breadcrumb li + li::before {
    content: "/";
    padding: 0 0.5rem;
    color: #6c757d;
}

.custom-page-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.custom-page-breadcrumb a:hover {
    text-decoration: underline;
}

.custom-page-breadcrumb .active {
    color: #6c757d;
}

/* ===========================
   Call to Action Sections
   =========================== */
.custom-page-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin: 3rem 0;
}

.custom-page-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.custom-page-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.custom-page-cta .btn {
    background: white;
    color: #667eea;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

.custom-page-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* ===========================
   Info Boxes
   =========================== */
.custom-page-info-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.custom-page-info-box.info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.custom-page-info-box.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.custom-page-info-box.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.custom-page-info-box.danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.custom-page-info-box h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .custom-page-title {
        font-size: 1.75rem;
    }
    
    .custom-page-content {
        font-size: 1rem;
    }
    
    .custom-page-content h1 {
        font-size: 1.75rem;
    }
    
    .custom-page-content h2 {
        font-size: 1.5rem;
    }
    
    .custom-page-nav {
        flex-direction: column;
    }
    
    .custom-page-nav-item {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .custom-page-nav-item.next {
        text-align: left;
    }
    
    .custom-page-cta {
        padding: 2rem 1rem;
    }
    
    .custom-page-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .custom-page {
        padding: 1rem 0;
    }
    
    .custom-page-header {
        margin-bottom: 1rem;
    }
    
    .custom-page-sidebar {
        padding: 1rem;
    }
}
