/**
 * Default Page Template Styles
 * 
 * Matches single-members.php styling approach with:
 * - Customizer variables for colors and fonts
 * - Modern hero sections with gradients
 * - Card-based layouts
 * - Responsive design
 * 
 * @package WEEU830
 * @version 2.0.0
 */

/* ==========================================================================
   DEFAULT PAGE TEMPLATE
   ========================================================================== */

.page-template-default {
    background: var(--color-background-alt);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumbs a {
    color: var(--color-on-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 10px;
    opacity: 0.6;
}

/* Page Title */
.page-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-display-lg);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: var(--color-on-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-excerpt {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
}

/* Content Section */
.page-content-section {
    padding: 0 0 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* No widgets in the sidebar: content spans the full width.
   Double class out-specifies the responsive column overrides below. */
.content-grid.content-grid--full {
    grid-template-columns: 1fr;
}

/* Main Content */
.content-main {
    min-width: 0;
}

.content-card {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5,
.content-card h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.content-card h2 { font-size: var(--font-size-display-sm); }
.content-card h3 { font-size: var(--font-size-h3); }
.content-card h4 { font-size: var(--font-size-h4); }
.content-card h5 { font-size: var(--font-size-xl); }
.content-card h6 { font-size: var(--font-size-lg); }

.content-card p {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 22px;
}

.content-card ul,
.content-card ol {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.8;
    color: var(--color-text);
    margin: 20px 0 20px 30px;
}

.content-card li {
    margin-bottom: 10px;
}

.content-card a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.content-card a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.content-card blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 25px;
    margin: 28px 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 19px;
}

/* Sidebar */
.content-sidebar {
    min-width: 0;
}

.content-sidebar .widget {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.content-sidebar .widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.content-sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-primary);
}

.content-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-sidebar li {
    font-family: var(--font-primary);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-background-alt);
}

.content-sidebar li:last-child {
    border-bottom: none;
}

.content-sidebar a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-sidebar a:hover {
    color: var(--color-primary);
}

/* Comments */
.comments-wrapper {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 45px;
    margin-top: 40px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Page Links */
.page-links {
    font-family: var(--font-primary);
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.page-links a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 5px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-links a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.page-links > .current {
    padding: 10px 20px;
    margin: 0 5px;
    background: var(--color-border);
    border-radius: 25px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
    
    .page-title {
        font-size: var(--font-size-display);
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: var(--font-size-h1);
    }
    
    .page-excerpt {
        font-size: var(--font-size-base);
    }
    
    .content-card {
        padding: 35px;
    }
    
    .content-card h2 { font-size: var(--font-size-h3); }
    .content-card h3 { font-size: var(--font-size-h4); }
    .content-card h4 { font-size: var(--font-size-xl); }
}

@media (max-width: 480px) {
    .page-title {
        font-size: var(--font-size-h2);
    }
    
    .content-card {
        padding: 25px;
    }
    
    .content-sidebar .widget {
        padding: 28px;
    }
}
