* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #eeeee4;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #eeeee4;
    min-height: 100vh;
    color: #2c2c2c;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: #eeeee4;
    border-bottom: 2px solid #1a1a1a;
    padding: 0;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 15px;
}

.logo {
    position: absolute;
    left: 15px;
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.logo-dot {
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-buttons {
    position: absolute;
    right: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.nav-buttons .btn {
    display: inline-block;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
}

/* ========================================
   SEARCH BAR STYLES
   ======================================== */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.search-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.2s ease;
    border: 1px solid #bbb;
}

.search-wrapper:focus-within {
    background: #ffffff;
    border-color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#header-search {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #2c2c2c;
    outline: none;
    font-family: 'Georgia', serif;
}

#header-search::placeholder {
    color: #777;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    color: #777;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.search-btn:hover {
    background: #e5e5db;
    color: #1a1a1a;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    z-index: 1000;
    display: none;
    border: 1px solid #bbb;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e5e5db;
}

.suggestion-item:hover {
    background-color: #eeeee4;
}

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

.suggestion-item strong {
    display: block;
    color: #1a1a1a;
    font-size: 14px;
    margin-bottom: 2px;
}

.suggestion-meta {
    font-size: 12px;
    color: #777;
}

.search-all {
    background-color: #eeeee4;
    font-weight: 600;
    border-top: 2px solid #bbb;
}

/* ========================================
   PERSONALIZED GREETING SECTION
   ======================================== */
.greeting-section {
    display: block;
}

.greeting-content {
    text-align: left;
}

.greeting-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 400;
    color: #777;
    margin: 0;
    padding: 0;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edition-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-top: 2px;
}

.edition-label,
.edition-date,
.edition-separator {
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

.edition-date {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edition-separator {
    opacity: 0.5;
}

/* Responsive greeting */
@media (max-width: 768px) {
    .greeting-text {
        font-size: 12px;
    }
    
    .edition-label,
    .edition-date,
    .edition-separator {
        font-size: 11px;
    }
    
    /* Stack greeting above nav on mobile */
    .category-nav-header .container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .category-nav-header .greeting-section {
        padding: 8px 0;
        border-bottom: 1px solid #d5d5cd;
    }
}

/* ========================================
   BUTTONS - STANDARDIZED SYSTEM
   ======================================== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #1a1a1a;
    border-radius: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-family: 'Georgia', serif;
    background: transparent;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Primary Button - Main actions */
.btn-primary {
    background: #1a1a1a;
    color: #eeeee4;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background: #2c2c2c;
    border-color: #2c2c2c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.25);
}

/* Secondary Button - Secondary actions */
.btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #777;
}

.btn-secondary:hover {
    background: #eeeee4;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Danger Button - Delete/destructive actions */
.btn-danger {
    background: #b8321d;
    color: #eeeee4;
    border-color: #b8321d;
}

.btn-danger:hover {
    background: #962917;
    border-color: #962917;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(184, 50, 29, 0.3);
}

/* Success Button - Confirm actions */
.btn-success {
    background: #2d5016;
    color: #eeeee4;
    border-color: #2d5016;
}

.btn-success:hover {
    background: #3d6b1f;
    border-color: #3d6b1f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 80, 22, 0.3);
}

/* Button Sizes */
.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Button States */
.btn:disabled,
.btn.disabled {
    background: #e8dfd5;
    color: #a89888;
    border-color: #d5d5cd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover,
.btn.disabled:hover {
    background: #e8dfd5;
    color: #a89888;
    border-color: #d5d5cd;
    transform: none;
    box-shadow: none;
}

/* Special Buttons */
.btn-subscribe {
    background: #8b7355;
    color: #eeeee4;
    border-color: #777;
}

.btn-subscribe:hover {
    background: #6d5940;
    border-color: #6d5940;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-group .btn {
    margin: 0;
}

/* ========================================
   FORMS - UNIFIED SYSTEM
   ======================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    font-family: 'Georgia', serif;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #777;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 30px;
    border-top: 1px solid #d5d5cd;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0 !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* ========================================
   CONTENT CONTAINERS - UNIFIED SYSTEM
   ======================================== */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    margin-bottom: 50px;
}

.content-header {
    text-align: center;
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.content-header p {
    color: #777;
    font-size: 16px;
}

/* ========================================
   MESSAGES & STATUS - UNIFIED SYSTEM
   ======================================== */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 2px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
}

.message-success,
.status-success {
    background: #e8f3e1;
    color: #2d5016;
    border-color: #c8ddb9;
}

.message-error,
.status-error {
    background: #f9e6e3;
    color: #962917;
    border-color: #edc9c2;
}

.message-loading,
.status-loading {
    background: #e5e5db;
    color: #666;
    border-color: #d5d5cd;
}

.message-warning,
.status-warning {
    background: #fef5e7;
    border-color: #f9e4b7;
    color: #8b6914;
}

.status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e5e5db;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading, .error {
    text-align: center;
    padding: 40px;
    color: #777;
    font-style: italic;
}

.error {
    color: #962917;
    background: #f9e6e3;
    border: 1px solid #edc9c2;
    border-radius: 2px;
}

/* ========================================
   TABS - UNIFIED SYSTEM
   ======================================== */
.tab-container {
    display: flex;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 30px;
}

.tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #777;
    transition: all 0.2s ease;
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.tab-button.active {
    color: #1a1a1a;
    border-bottom: 3px solid #1a1a1a;
}

.tab-button:hover:not(.active) {
    color: #2c2c2c;
    background: #e5e5db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ========================================
   PANELS & CARDS - UNIFIED SYSTEM
   ======================================== */
.panel {
    background: #ffffff;
    border: 1px solid #d5d5cd;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 2px;
}

.panel h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 18px;
}

.panel p {
    color: #2c2c2c;
    margin-bottom: 8px;
}

.panel ul {
    margin-left: 20px;
    color: #2c2c2c;
}

.panel li {
    margin-bottom: 8px;
}

.info-panel {
    background: #e5e5db;
    padding: 15px;
    border-radius: 2px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2c2c2c;
    border: 1px solid #d5d5cd;
}

/* ========================================
   AUTHENTICATION SPECIFIC
   ======================================== */
.auth-container {
    max-width: 450px;
    margin: 40px auto;
}

.auth-link {
    color: #1a1a1a;
    text-decoration: underline;
    cursor: pointer;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: #777;
    font-size: 14px;
}

.back-home {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    font-size: 14px;
    color: #777;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* ========================================
   CATEGORY NAVIGATION BAR (IN HEADER)
   ======================================== */
.category-nav-header {
    background: #eeeee4;
    padding: 0;
    border-top: 1px solid #bbb;
}

.category-nav-header .container {
    padding: 0 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0px auto;
}

.category-nav-header .greeting-section {
    position: absolute;
    left: 20px;
    padding: 10px 0;
}

.category-nav-items {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav-items::-webkit-scrollbar {
    display: none;
}

.category-nav-link {
    flex-shrink: 0;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.category-nav-link:hover {
    background: #e5e5db;
    color: #2c2c2c;
}

.category-nav-link.active {
    border-bottom-color: #1a1a1a;
    font-weight: 700;
}

/* ========================================
   NEWSPAPER LAYOUT - HOMEPAGE
   ======================================== */
.newspaper-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Category Page Header */
.category-page-header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid #1a1a1a;
    margin-bottom: 40px;
}

.category-page-header h1 {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.category-page-header p {
    font-size: 18px;
    color: #777;
    font-style: italic;
}

/* Featured Article - Large Hero */
.featured-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 3px solid #1a1a1a;
    margin-bottom: 40px;
}

.featured-main {
    display: flex;
    flex-direction: column;
}

.featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s ease;
    margin-bottom: 20px;
}

.featured-image:hover {
    opacity: 0.9;
}

.featured-category {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #777;
    margin-bottom: 15px;
    display: inline-block;
}

.featured-title {
    font-size: 42px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
    cursor: pointer;
    color: #2c2c2c;
}

.featured-title:hover {
    color: #2c2c2c;
}

.featured-excerpt {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #777;
}

/* Featured Secondary Articles */
.featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.secondary-article {
    padding-bottom: 30px;
    border-bottom: 1px solid #d5d5cd;
}

.secondary-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.secondary-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.secondary-image:hover {
    opacity: 0.9;
}

.secondary-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 10px;
    display: block;
}

.secondary-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
    cursor: pointer;
    color: #2c2c2c;
}

.secondary-title:hover {
    color: #2c2c2c;
}

.secondary-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    margin-bottom: 10px;
}

/* Category Section */
.category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #1a1a1a;
    padding-bottom: 12px;
    margin-bottom: 30px;
}

.category-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2c2c2c;
    margin: 0;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-article {
    display: flex;
    flex-direction: column;
    padding-bottom: 25px;
    border-bottom: 1px solid #d5d5cd;
}

.grid-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.grid-image:hover {
    opacity: 0.9;
}

.grid-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 8px;
    display: block;
}

.grid-title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
    cursor: pointer;
    color: #2c2c2c;
}

.grid-title:hover {
    color: #2c2c2c;
}

.grid-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    margin-bottom: 12px;
}

.grid-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Article Actions in Grid */
.grid-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
}

.grid-like-btn {
    background: none;
    border: 1px solid #d5d5cd;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.grid-like-btn:hover {
    color: #2c2c2c;
    border-color: #1a1a1a;
}

.grid-like-btn.liked {
    color: #d4af37;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.grid-view-count {
    color: #999;
    font-size: 12px;
}

/* Loading State */
.loading-grid {
    text-align: center;
    padding: 60px;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* ========================================
   HOMEPAGE SPECIFIC (OLD STYLES - KEPT FOR OTHER PAGES)
   ======================================== */
.upload-cta {
    background: #e5e5db;
    border: 1px solid #d5d5cd;
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 2px;
}

.upload-cta h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #2c2c2c;
}

.upload-cta p {
    margin-bottom: 20px;
    color: #777;
    font-size: 16px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 50px;
}

.articles-section {
    background: #ffffff;
    border-right: 1px solid #d5d5cd;
    padding-right: 40px;
}

.sidebar {
    background: #ffffff;
    padding-left: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c2c2c;
    font-family: 'Georgia', serif;
    border-bottom: 2px solid #121212;
    padding-bottom: 10px;
}

/* ========================================
   ARTICLE CARDS & CONTENT (OLD STYLES FOR OTHER PAGES)
   ======================================== */
.article-card {
    background: #ffffff;
    padding: 25px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #d5d5cd;
    transition: all 0.2s ease;
}

.article-card:hover {
    background: #fafafa;
}

.article-card:last-child {
    border-bottom: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.creator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.creator-info {
    flex: 1;
}

.creator-name {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date {
    color: #777;
    font-size: 12px;
    font-style: italic;
}

.premium-badge, .premium-indicator {
    background: #d4af37;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag {
    background: #e9ecef;
    color: #6c757d;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c2c2c;
    font-family: 'Georgia', serif;
    line-height: 1.3;
    cursor: pointer;
}

.article-title:hover {
    text-decoration: underline;
}

.article-excerpt {
    color: #2c2c2c;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.article-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.like-btn {
    background: none;
    border: 1px solid #d5d5cd;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 2px;
}

.like-btn:hover {
    color: #2c2c2c;
    border-color: #1a1a1a;
}

.like-btn.liked {
    color: #d4af37;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.view-count {
    color: #777;
    font-size: 14px;
}

.article-cover-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 15px;
}

/* ========================================
   INDIVIDUAL ARTICLE PAGE
   ======================================== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    margin-bottom: 50px;
}

.article-header {
    border-bottom: 2px solid #d5d5cd;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.article-category {
    background: #e5e5db;
    color: #777;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-container .article-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c2c2c;
    font-family: 'Georgia', serif;
    line-height: 1.2;
    margin-bottom: 20px;
    cursor: default;
}

.article-container .article-title:hover {
    text-decoration: none;
}

.article-container .article-excerpt {
    font-size: 20px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
}

.article-container .creator-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-stats {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #2c2c2c;
    font-family: 'Georgia', serif;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2,
.article-content h3 {
    margin: 32px 0 16px 0;
    color: #2c2c2c;
}

.article-container .article-actions {
    border-top: 2px solid #d5d5cd;
    padding-top: 30px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.like-btn-large {
    background: none;
    border: 2px solid #d5d5cd;
    padding: 12px 20px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #777;
    transition: all 0.2s ease;
}

.like-btn-large:hover {
    border-color: #1a1a1a;
    color: #2c2c2c;
}

.like-btn-large.liked {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.back-link {
    color: #777;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #2c2c2c;
    text-decoration: underline;
}

/* ========================================
   UPLOAD PAGE SPECIFIC
   ======================================== */
.upload-section {
    max-width: 900px;
    margin: 0 auto;
}

.upload-header {
    text-align: center;
    margin-bottom: 40px;
}

.upload-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.upload-header p {
    color: #777;
    font-size: 16px;
}

.upload-form {
    background: #e5e5db;
    border: 1px solid #d5d5cd;
    padding: 40px;
    border-radius: 2px;
}

.guidelines-panel {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 2px;
}

.guidelines-panel h3 {
    color: #0d47a1;
    margin-bottom: 15px;
    font-size: 18px;
}

.guidelines-panel ul {
    color: #1565c0;
    margin-left: 20px;
}

.guidelines-panel li {
    margin-bottom: 8px;
}

#article-content {
    min-height: 400px;
    font-size: 14px;
    line-height: 1.6;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* ========================================
   SIDEBAR COMPONENTS
   ======================================== */
.subscription-panel {
    text-align: center;
}

.creator-panel {
    margin-bottom: 30px;
}

.creator-card {
    background: #ffffff;
    border: 1px solid #d5d5cd;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

.creator-card:hover {
    background: #fafafa;
}

.creator-stats {
    flex: 1;
}

.creator-stats h4 {
    margin-bottom: 5px;
    color: #2c2c2c;
    font-size: 16px;
    font-weight: 700;
}

.creator-stats p {
    color: #777;
    font-size: 13px;
}

/* ========================================
   USER MENU DROPDOWN
   ======================================== */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid #1a1a1a;
    padding: 8px 12px;
    border-radius: 2px;
    color: #2c2c2c;
    font-family: 'Georgia', serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-menu-trigger:hover {
    background: #e5e5db;
}

/* Menu Icon Animation */
.menu-icon {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.2s ease;
    font-size: 18px;
}

.user-menu-trigger:hover .menu-icon {
    transform: scale(1.1);
}

/* User Menu Styles */
.menu-item {
    padding: 12px 16px;
    color: #2c2c2c;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    background-color: #e5e5db;
}

.menu-divider {
    height: 1px;
    background-color: #d5d5cd;
    margin: 8px 0;
}

.main-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background: #ffffff;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.main-menu-dropdown.show {
    display: block;
}

/* Category "More" Menu */
.category-more-menu {
    position: relative;
    display: none; /* Hidden by default, shown only when needed */
}

.category-more-menu .more-trigger {
    cursor: pointer;
    background: none;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.category-more-menu .more-trigger:hover {
    background: #e5e5db;
}

.category-more-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background: #ffffff;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.category-more-dropdown.show {
    display: block;
}

.category-more-dropdown .category-nav-link {
    display: block;
    padding: 12px 16px;
    border-bottom: none;
}

.category-more-dropdown .category-nav-link:hover {
    background-color: #e5e5db;
}

.category-more-dropdown .category-nav-link.active {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Legacy support for old class names */
.user-menu-item {
    padding: 12px 16px;
    color: #2c2c2c;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.user-menu-item:hover {
    background-color: #e5e5db;
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    background: #ffffff;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown.show {
    display: block;
}

/* ========================================
   DASHBOARD SPECIFIC STYLES
   ======================================== */

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #d5d5cd;
}

.dashboard-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.dashboard-header p {
    color: #777;
    font-size: 16px;
}

.dashboard-section {
    margin-bottom: 50px;
}

.dashboard-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 20px;
    border-bottom: 1px solid #d5d5cd;
    padding-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    margin-bottom: 0;
}

.section-header h3 {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 600;
}

/* User Info Card */
.user-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #e5e5db;
    padding: 25px;
    border-radius: 2px;
    border: 1px solid #d5d5cd;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 32px;
    flex-shrink: 0;
}

.user-details h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #2c2c2c;
}

.user-details p {
    margin: 0 0 10px 0;
    color: #777;
    font-size: 16px;
}

.account-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.reader-badge {
    background: #e3f2fd;
    color: #1976d2;
}

.writer-badge {
    background: #e8f5e8;
    color: #2e7d32;
}

.join-date {
    font-size: 14px;
    color: #999999;
    font-style: italic;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #d5d5cd;
    padding: 25px;
    text-align: center;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px 0;
}

.stat-card p {
    color: #777;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* My Articles List */
.articles-list {
    background: #ffffff;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
}

.my-article-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #d5d5cd;
    transition: background-color 0.2s ease;
}

.my-article-card:hover {
    background-color: #fafafa;
}

.my-article-card:last-child {
    border-bottom: none;
}

.article-info {
    flex: 1;
}

.my-article-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.my-article-title a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.my-article-title a:hover {
    color: #777;
    text-decoration: underline;
}

.my-article-excerpt {
    margin: 0 0 10px 0;
    color: #777;
    font-size: 14px;
    line-height: 1.4;
}

.my-article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 12px;
}

.publish-date {
    color: #999999;
}

.article-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-published {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.article-category-tag {
    background: #f0f0f0;
    color: #777;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.article-stats-mini {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat-mini {
    text-align: center;
    min-width: 50px;
}

.stat-mini strong {
    display: block;
    font-size: 18px;
    color: #2c2c2c;
}

.stat-mini span {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-actions-mini {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.no-articles h3 {
    margin-bottom: 10px;
    color: #2c2c2c;
}

.no-articles p {
    margin-bottom: 20px;
}

/* Reader Section */
.reader-info {
    background: #e5e5db;
    padding: 30px;
    border-radius: 2px;
    border: 1px solid #d5d5cd;
    text-align: center;
}

.upgrade-prompt {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #d5d5cd;
}

.upgrade-prompt h3 {
    margin-bottom: 10px;
    color: #2c2c2c;
}

.upgrade-prompt p {
    margin-bottom: 20px;
    color: #777;
}

/* Settings Form */
.settings-form {
    background: #e5e5db;
    padding: 25px;
    border-radius: 2px;
    border: 1px solid #d5d5cd;
    max-width: 500px;
}

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

.settings-form small {
    color: #999999;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Account Type Panel */
.account-type-panel {
    margin: 20px 0;
    padding: 24px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.account-type-content {
    margin-top: 16px;
}

.current-type {
    margin-bottom: 16px;
    font-size: 16px;
    color: #777;
}

.account-type-toggle {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ========================================
   PROFILE PICTURE SECTION
   ======================================== */
.profile-picture-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #d5d5cd;
}

.profile-picture-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-picture-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-picture-preview span {
    color: white;
    font-weight: 700;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-picture-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.profile-picture-actions small {
    color: #999;
    font-size: 12px;
}

@media (max-width: 768px) {
    .profile-picture-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-picture-actions {
        align-items: center;
    }
}

/* ========================================
   HERO BANNER
   ======================================== */
.hero-banner {
    background: linear-gradient(135deg, #f8f8f8 0%, #d5d5cd 100%);
    border: 1px solid #d5d5cd;
    padding: 60px 40px;
    margin-bottom: 50px;
    text-align: center;
    border-radius: 2px;
}

.hero-banner h1 {
    font-size: 42px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.hero-banner p {
    font-size: 18px;
    color: #777;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ========================================
   SEARCH PAGE SPECIFIC
   ======================================== */
.search-results-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.search-header p {
    color: #777;
    font-size: 16px;
}

.search-filters {
    background: #e5e5db;
    border: 1px solid #d5d5cd;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 2px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-group select {
    padding: 10px;
    border: 2px solid #d5d5cd;
    border-radius: 2px;
    font-size: 14px;
    background: white;
    font-family: 'Georgia', serif;
}

.filter-group select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.results-stats {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #d5d5cd;
    color: #777;
}

.search-results {
    background: #ffffff;
}

.search-result-card {
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.search-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.search-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #777;
}

.search-placeholder h3 {
    margin-bottom: 15px;
    color: #2c2c2c;
    font-size: 24px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.no-results h3 {
    margin-bottom: 15px;
    color: #2c2c2c;
}

/* Empty state */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.empty h3 {
    margin-bottom: 15px;
    color: #2c2c2c;
    font-size: 24px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .featured-section {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .articles-section {
        border-right: none;
        padding-right: 0;
    }
    
    .sidebar {
        padding-left: 0;
        border-top: 1px solid #d5d5cd;
        padding-top: 30px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
        min-height: auto;
    }
    
    .nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .logo img {
        height: 40px;
    }

    .category-nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .content-container {
        padding: 18px;
        margin: 0 10px 25px;
    }

    .article-container {
        padding: 18px;
        margin: 0 10px 25px;
    }

    .article-container .article-title {
        font-size: 26px;
    }

    .article-container .article-excerpt {
        font-size: 17px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-container .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .article-stats {
        margin-left: 0;
    }

    .article-container .article-actions {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .content-header h1 {
        font-size: 26px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-container {
        margin: 20px auto;
        padding: 30px 20px;
    }

    .main-menu-dropdown,
    .user-menu-dropdown {
        right: -10px;
        min-width: 160px;
    }

    .user-menu-trigger {
        font-size: 14px;
        padding: 6px 12px;
    }

    .user-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .my-article-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .article-stats-mini {
        justify-content: center;
    }
    
    .article-actions-mini {
        flex-direction: row;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dashboard-header h1 {
        font-size: 26px;
    }

    .hero-banner {
        padding: 30px 18px;
    }

    .hero-banner h1 {
        font-size: 26px;
    }
    
    .hero-banner p {
        font-size: 16px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .search-filters {
        padding: 15px;
    }

    .upload-form {
        padding: 20px 15px;
    }

    .guidelines-panel {
        padding: 18px;
    }

    /* Touch targets (44px minimum) */
    .btn {
        min-height: 44px;
    }

    .search-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .menu-item,
    .user-menu-item {
        min-height: 44px;
    }

    .suggestion-item {
        min-height: 44px;
        padding: 14px 16px;
    }

    /* Header layout fix */
    .logo {
        position: static;
    }

    .logo-text {
        font-size: 30px;
    }

    .nav-buttons {
        position: static;
    }

    .search-container {
        width: 100%;
        order: 3;
    }

    .search-wrapper {
        max-width: 100%;
    }

    /* Typography scaling */
    .featured-title {
        font-size: 28px;
    }

    .category-page-header h1 {
        font-size: 28px;
    }

    .authors-header h1 {
        font-size: 28px;
    }

    .profile-name {
        font-size: 28px;
    }

    .search-header h1,
    .upload-header h1 {
        font-size: 26px;
    }

    /* Spacing reductions */
    .panel {
        padding: 18px;
    }

    .stat-card {
        padding: 18px;
    }

    .user-info-card {
        padding: 18px;
    }

    .profile-header {
        padding: 25px;
        margin-bottom: 25px;
    }

    .category-page-header {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

    .authors-header {
        padding: 25px 15px;
        margin-bottom: 25px;
    }

    /* Image height reductions */
    .featured-image {
        height: 280px;
    }

    .secondary-image {
        height: 160px;
    }

    .grid-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    /* Other */
    .btn-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-actions .btn {
        width: 100%;
    }

    #header-search {
        font-size: 16px;
    }

    .filter-group select {
        font-size: 16px;
    }

    .legal-checkbox input[type="checkbox"] {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }

    .legal-checkbox {
        gap: 12px;
    }

    .category-nav-items {
        mask-image: linear-gradient(to right, black calc(100% - 30px), transparent);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 30px), transparent);
    }

    .search-suggestions {
        max-height: 60vh;
        overflow-y: auto;
    }
}

@media (max-width: 600px) {
    .featured-title {
        font-size: 24px;
    }

    .featured-excerpt {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 22px;
    }

    .featured-image {
        height: 220px;
    }

    .secondary-image {
        height: 140px;
    }

    .article-container .article-title {
        font-size: 22px;
    }

    .hero-banner h1 {
        font-size: 22px;
    }

    .hero-banner p {
        font-size: 15px;
    }

    .content-header h1 {
        font-size: 22px;
    }

    .category-page-header h1 {
        font-size: 26px;
    }

    .profile-name {
        font-size: 24px;
    }

    .content-container,
    .article-container {
        padding: 15px;
        margin: 0 8px 20px;
    }

    .panel {
        padding: 15px;
    }

    .following-article-card {
        flex-direction: column;
        padding: 15px;
    }

    .following-article-image {
        width: 100%;
        height: 180px;
    }
}

/* ========================================
   FOCUS ACCESSIBILITY & HIGH CONTRAST
   ======================================== */
.btn:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.tab-button:focus,
.user-menu-trigger:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .header {
        border-bottom: 2px solid #000;
    }

    .btn {
        border-width: 2px;
    }

    .tab-button.active {
        background: #000;
        color: #fff;
    }
}

/* ========================================
   SITE FOOTER
   ======================================== */
.site-footer {
    background: #1a1a1a;
    color: #e5e5db;
    padding: 30px 0;
    margin-top: 60px;
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #b0b0a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-copyright {
    color: #777;
}

@media (max-width: 600px) {
    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   LEGAL CHECKBOXES (Registration)
   ======================================== */
.legal-checkboxes {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
}

.legal-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.legal-checkbox span {
    font-size: 14px;
    color: #2c2c2c;
    line-height: 1.4;
}

.legal-checkbox a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

.legal-checkbox a:hover {
    color: #555;
}/* ========================================
   FEED TABS WITH DIVIDER
   ======================================== */
.category-nav-items {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-nav-items::-webkit-scrollbar {
    display: none;
}

.category-nav-link {
    flex-shrink: 0;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.category-nav-link:hover {
    background: #e5e5db;
    color: #2c2c2c;
}

.category-nav-link.active {
    border-bottom-color: #1a1a1a;
    font-weight: 700;
}

.category-nav-divider {
    width: 1px;
    background: #d0d0d0;
    margin: 8px 12px;
    flex-shrink: 0;
}

/* ========================================
   CATEGORIES DROPDOWN
   ======================================== */
.categories-dropdown {
    position: relative;
    flex-shrink: 0;
}

.categories-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Georgia', serif;
}

.categories-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.categories-dropdown.open .categories-arrow {
    transform: rotate(180deg);
}

.categories-dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #ffffff;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
}

.categories-dropdown-menu.show {
    display: block;
}

.categories-dropdown-item {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0ec;
}

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

.categories-dropdown-item:hover {
    background-color: #eeeee4;
}

.categories-dropdown-item.active {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* ========================================
   USER PROFILE PAGE STYLES
   ======================================== */
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-header {
    background: #e5e5db;
    padding: 40px;
    border-radius: 2px;
    margin-bottom: 40px;
    border: 1px solid #d5d5cd;
}

.profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.profile-bio {
    font-size: 16px;
    color: #2c2c2c;
    margin-bottom: 20px;
    line-height: 1.6;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-stat {
    display: flex;
    flex-direction: column;
}

.profile-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
}

.profile-stat-label {
    font-size: 14px;
    color: #777;
}

.profile-actions {
    flex-shrink: 0;
}

.follow-btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
}

.follow-btn.following {
    background: #1a1a1a;
    color: #fff;
}

.follow-btn.following:hover {
    background: #333;
}

/* ========================================
   AUTHORS PAGE STYLES
   ======================================== */
.authors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.authors-header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 3px solid #1a1a1a;
    margin-bottom: 40px;
}

.authors-header h1 {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2c2c2c;
    margin-bottom: 10px;
}

.authors-header p {
    font-size: 18px;
    color: #777;
    font-style: italic;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.author-card {
    background: #e5e5db;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    padding: 30px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.author-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-card-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c2c2c;
}

.author-card-bio {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;  /* Add this line */
    overflow: hidden;
}

.author-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.author-card-actions {
    display: flex;
    gap: 10px;
}

.author-card-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 14px;
}

/* ========================================
   EMPTY STATES
   ======================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c2c2c;
}

.empty-state p {
    font-size: 16px;
    color: #777;
    margin-bottom: 25px;
}

.empty-state .btn {
    display: inline-block;
}

/* ========================================
   FOLLOWING PAGE STYLES
   ======================================== */
.feed-controls {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #d5d5cd;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.controls-left label {
    font-weight: 600;
    font-size: 14px;
    color: #2c2c2c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sort-select {
    padding: 8px 16px;
    border: 2px solid #d5d5cd;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Georgia', serif;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Following Articles List */
.following-articles-list {
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Article Card */
.following-article-card {
    background: #fff;
    border: 1px solid #d5d5cd;
    border-radius: 2px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    transition: all 0.2s ease;
}

.following-article-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.following-article-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.following-article-image:hover {
    opacity: 0.9;
}

.following-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.following-article-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 10px;
    display: inline-block;
}

.following-article-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 12px;
    cursor: pointer;
    line-height: 1.3;
}

.following-article-title:hover {
    color: #2c2c2c;
}

.following-article-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #777;
    margin-bottom: 15px;
}

.following-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

.author-link {
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.author-link:hover {
    color: #777;
    text-decoration: underline;
}

/* Author Group Card */
.author-group-card {
    background: #e5e5db;
    border: 2px solid #d5d5cd;
    border-radius: 2px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.2s ease;
}

.author-group-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.author-group-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d0d0d0;
}

.author-group-info {
    display: flex;
    flex-direction: column;
}

.author-group-name-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.author-group-name-link:hover {
    opacity: 0.7;
}

.author-group-name {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 5px 0;
}

.author-group-stats {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.author-latest-article {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 2px;
}

.author-latest-image {
    width: 180px;
    height: 135px;
    object-fit: cover;
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.author-latest-image:hover {
    opacity: 0.9;
}

.author-latest-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.author-latest-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 8px;
    display: inline-block;
}

.author-latest-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 10px 0;
    cursor: pointer;
    line-height: 1.3;
}

.author-latest-title:hover {
    color: #2c2c2c;
}

.author-latest-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #777;
    margin: 0 0 12px 0;
}

.author-latest-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
    }

    .profile-stats {
        gap: 20px;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .category-nav-divider {
        margin: 8px 8px;
    }

    .feed-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .controls-left {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .following-article-card {
        flex-direction: column;
        padding: 20px;
    }

    .following-article-image {
        width: 100%;
        height: 200px;
    }

    .author-group-header {
        flex-direction: column;
        gap: 15px;
    }

    .author-group-actions {
        width: 100%;
        flex-direction: column;
    }

    .author-latest-article {
        flex-direction: column;
    }

    .author-latest-image {
        width: 100%;
        height: 200px;
    }

    .profile-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .profile-actions {
        width: 100%;
    }

    .profile-actions .btn {
        width: 100%;
    }
}