/* Content CSS - Main content area and auth forms */

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Main Layout */
.content-layout {
    display: grid;
    gap: 24px;
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

/* 2-Column Layout */
.content-layout.two-column {
    grid-template-columns: 250px 1fr;
}

/* 3-Column Layout */
.content-layout.three-column {
    grid-template-columns: 250px 1fr 250px;
}

/* Sidebar Styling */
.left-sidebar,
.right-sidebar {
    background: #f8f9fa;
}

.sidebar-section {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 24px;
}

.sidebar-heading {
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eaedf2;
}

.sidebar-content {
    padding: 12px 16px;
}

/* Navigation Links */
.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: 8px 0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
}

.nav-link:hover {
    color: #2971d6;
}

/* Main Content Section */
.main-content-area {
    min-height: 400px;
}

.main-section {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    overflow: hidden;
}

.main-content {
    padding: 24px;
}

/* Lists within main content */
.main-content ul,
.main-content ol {
    margin-left: 20px;
    padding-left: 20px;
}

.main-content ul {
    list-style-type: disc;
}

.main-content ol {
    list-style-type: decimal;
}

.main-content li {
    margin-bottom: 8px;
}

/* Content Sections */
.content-block {
    margin-bottom: 32px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.block-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
    position: relative;
}

.block-title:after {
    content: '';
    display: block;
    height: 2px;
    width: 40px;
    background-color: #2971d6;
    margin-top: 8px;
}

/* Post Entries */
.post-entry {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eaedf2;
}

.post-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.post-title-link {
    color: #1a4d7a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title-link:hover {
    color: #2971d6;
    text-decoration: none;
}

.post-meta {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
}

.post-category {
    background-color: #eaf4ff;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
    color: #2971d6;
    margin-right: 12px;
    text-decoration: none;
}

.post-category:hover {
    background-color: #d4e7fb;
}

.post-date {
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
}

.post-excerpt {
    margin-bottom: 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    color: #2971d6;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Stats Section */
.stats-section {
    margin-bottom: 25px;
}

.stats-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

/* Quick Links */
.quick-links h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

/* ========================================
   AUTH PAGE STYLES
   ======================================== */

.auth-page-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 500px;
}

.auth-form-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.auth-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 480px;
}

.auth-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.form-group-checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.form-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-button-primary {
    width: 100%;
    padding: 14px 32px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.auth-button-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.auth-button-primary:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #eaedf2;
}

.auth-footer p {
    font-size: 14px;
    color: #666;
}

.auth-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-link-inline {
    color: #3498db;
    text-decoration: none;
}

.auth-link-inline:hover {
    text-decoration: underline;
}

/* Article Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eaedf2;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.share-icon img {
    width: 16px;
    height: 16px;
    display: block;
}

.share-icon:hover {
    background: #e6e8eb;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0 10px;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    display: block;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #eaedf2;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
}

.page-link:hover {
    background-color: #f5f7fa;
}

.page-link.active {
    background-color: #2971d6;
    border-color: #2971d6;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .content-layout.three-column {
        grid-template-columns: 220px 1fr;
    }

    .right-sidebar {
        display: none;
    }
}

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

    .left-sidebar,
    .right-sidebar {
        display: none;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .auth-card-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .auth-page-container {
        padding: 20px 15px;
    }

    .auth-card {
        padding: 25px 15px;
        box-shadow: none;
        border: 1px solid #eaedf2;
    }

    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
