/* 
 * StoryHub - Main Stylesheet
 * Version 1.0
 */

/* ====== BASE STYLES ====== */
:root {
    --primary-color: #4a6cf7;
    --primary-light: #6a86ff;
    --primary-dark: #3a51c7;
    --secondary-color: #ff7c51;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --bg-alt: #f9f9f9;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hidden {
    display: none !important;
}

/* Loading styles */
.loading {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

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

/* ====== HEADER & NAVIGATION ====== */
.header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links ul {
    display: flex;
}

.nav-links ul li {
    margin-left: 1.5rem;
}

.nav-links ul li a {
    color: var(--text-color);
    font-weight: 500;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-buttons button {
    margin-left: 0.75rem;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-button {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.user-button img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-color);
    min-width: 160px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    z-index: 1;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--bg-alt);
}

.open-menu, .close-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ====== HERO SECTION ====== */
.hero {
    padding: 5rem 0;
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 1;
}

/* ====== FEATURES SECTION ====== */
.features-section {
    padding: 5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* ====== ARTICLES & STORIES SECTIONS ====== */
.featured-section {
    padding: 5rem 0;
    background-color: var(--bg-alt);
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

.view-all {
    font-weight: 600;
    display: flex;
    align-items: center;
}

.view-all i {
    margin-left: 0.5rem;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.meta-divider {
    margin: 0 0.75rem;
}

/* Story Grid (Similar to Article Grid but with slight differences) */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.story-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 1.5rem;
}

.story-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.story-title a {
    color: var(--text-color);
}

.story-title a:hover {
    color: var(--primary-color);
}

.story-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====== CTA SECTION ====== */
.cta-section {
    padding: 5rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1rem;
}

.cta-section .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ====== FOOTER ====== */
.footer {
    background-color: #2d2d2d;
    color: white;
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer .logo {
    color: white;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    color: white;
    margin-right: 1rem;
    font-size: 1.3rem;
}

.social-links a:hover {
    color: var(--primary-light);
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
}

.footer-section.contact i {
    margin-right: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.7;
}

/* ====== PAGES HEADER ====== */
.page-header {
    background-color: var(--bg-alt);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ====== ABOUT PAGE ====== */
.about-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-section {
    padding: 5rem 0;
}

.about-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-value-card {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.mission-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mission-value-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.mission-value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mission-value-card p {
    color: var(--text-light);
}

.team-section {
    padding: 5rem 0;
    background-color: var(--bg-alt);
}

.team-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.team-member-image {
    height: 300px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
}

.team-member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-member-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member-bio {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.team-social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    color: var(--text-color);
}

.team-social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ====== ARTICLES & STORIES PAGES ====== */
.categories-filter {
    padding: 2rem 0;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-search {
    display: flex;
    align-items: center;
}

.filter-search input {
    padding: 0.6rem 1rem;
    border-radius: 20px 0 0 20px;
    border: 1px solid var(--border-color);
    outline: none;
    width: 250px;
}

.filter-search button {
    padding: 0.6rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.articles-section, .stories-section {
    padding: 3rem 0 5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 0 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-number:hover, .pagination-number.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ====== ARTICLE & STORY DETAIL PAGES ====== */
.article-header, .story-header {
    padding: 3rem 0;
    background-color: var(--bg-alt);
    text-align: center;
}

.article-header h1, .story-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta-header, .story-meta-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.article-meta-header .author-info, .story-meta-header .author-info {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.meta-divider {
    width: 4px;
    height: 4px;
    background-color: var(--text-light);
    border-radius: 50%;
    margin: 0 1rem;
}

.article-content-wrapper, .story-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.article-feature-image, .story-feature-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-body, .story-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body p, .story-body p {
    margin-bottom: 1.5rem;
}

.article-body h2, .story-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-body h3, .story-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-tags {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background-color: var(--bg-alt);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-share, .story-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-text {
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    transition: var(--transition);
}

.share-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.author-box {
    margin-top: 4rem;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

.author-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.author-bio {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.related-articles, .related-stories {
    padding: 5rem 0;
    background-color: var(--bg-alt);
}

.related-articles h2, .related-stories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* ====== WRITE PAGE ====== */
.write-page {
    padding: 4rem 0;
}

.write-form {
    max-width: 800px;
    margin: 0 auto;
}

.write-form h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.cover-image-upload {
    height: 200px;
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cover-image-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.upload-text h3 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.upload-text p {
    color: var(--text-light);
    text-align: center;
}

.write-form-group {
    margin-bottom: 2rem;
}

.write-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.write-form-group input,
.write-form-group select,
.write-form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.write-form-group input:focus,
.write-form-group select:focus,
.write-form-group textarea:focus {
    border-color: var(--primary-color);
}

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

.write-form-group #storyContent {
    min-height: 400px;
}

.write-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-draft-btn {
    background-color: var(--bg-alt);
    color: var(--text-color);
}

.save-draft-btn:hover {
    background-color: var(--border-color);
}

/* Write CTA Section */
.write-cta-section {
    padding: 5rem 0;
}

.write-cta-container {
    background-color: var(--bg-alt);
    border-radius: var(--border-radius);
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.write-cta-content {
    flex: 1;
}

.write-cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.write-cta-content p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.write-cta-image {
    flex: 1;
    text-align: center;
}

.write-cta-image img {
    max-width: 100%;
    max-height: 300px;
}

/* ====== AUTH MODALS ====== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        width: 40%;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        background: white;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 999;
        transition: 0.5s;
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }
    
    .nav-links ul {
        padding: 30px;
        flex-direction: column;
    }
    
    .nav-links ul li {
        margin: 15px 0;
    }
    
    .open-menu, .close-menu {
        display: block;
    }
    
    .close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hero {
        text-align: center;
        padding: 3rem 0;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .write-cta-container {
        flex-direction: column;
        padding: 2rem;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-search {
        width: 100%;
    }
    
    .filter-search input {
        width: 100%;
    }
    
    .article-header h1, .story-header h1 {
        font-size: 2.2rem;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .section-heading h2 {
        font-size: 1.8rem;
    }
    
    .feature-card, .article-card, .story-card {
        padding: 1.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .write-form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .write-form-actions button {
        width: 100%;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
    }
    
    .about-section h2, .team-section h2 {
        font-size: 2rem;
    }
}

/* Configuration message styles */
.config-message {
    background-color: var(--bg-alt);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
}

.config-message h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.config-message p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.config-message code {
    background: rgba(74, 108, 247, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}