/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --primary-extra-light: #E8F5E9;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #888888;
    --bg-color: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-lighter: #F5F5F5;
    --border-color: #E0E0E0;
    --border-light: #F0F0F0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #2196F3;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   HEADER STYLES
   ============================ */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: rotate(5deg);
}

.logo-text {
    min-width: 0;
}

.logo-text h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
}

.logo-text .tagline {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
    opacity: 0.8;
}

/* Search Container */
.search-container {
    flex: 1;
    min-width: 0;
    max-width: 650px;
    margin: 0 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 50px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-light);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
}

.search-box i {
    position: absolute;
    left: 20px;
    color: var(--text-lighter);
    z-index: 1;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    padding: 16px 20px 16px 52px;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    min-width: 0;
    width: 100%;
    color: var(--text-color);
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-lighter);
    font-weight: 400;
}

.search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 0 50px 50px 0;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.search-box button:hover {
    background: var(--primary-dark);
    padding-right: 35px;
}

.search-box button:active {
    transform: scale(0.98);
}

/* Back Button (for article-detail.html) */
.back-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    margin-left: 15px;
    box-shadow: var(--shadow-light);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.back-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #2E7D32);
    transform: translateX(-4px) translateY(-2px);
    box-shadow: var(--shadow);
}

.back-btn:active {
    transform: translateX(-2px) translateY(0);
}

/* ============================
   MAIN CONTENT
   ============================ */
main {
    flex: 1;
    padding: 40px 0;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.page-header h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.stats:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================
   FOOTER STYLES
   ============================ */
.footer {
    background: var(--bg-color);
    padding: 50px 0 25px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    flex: 1;
    max-width: 300px;
}

.footer-logo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.footer-logo h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-dark);
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 700;
}

.footer-logo p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    color: var(--text-lighter);
    font-size: 0.9rem;
    padding-top: 25px;
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
    opacity: 0.7;
}

/* ============================
   COMMON COMPONENTS
   ============================ */

/* Loading State */
.loading {
    text-align: center;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
}

.loading-spinner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.2));
}

@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(0.95) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotate(5deg);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.95) rotate(0deg);
    }
}

.loading p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 500;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 18px 24px;
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1001;
    max-width: 380px;
    min-width: 300px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-extra-light), transparent);
    opacity: 0.3;
    z-index: -1;
    border-radius: var(--radius);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

.toast.warning {
    border-left-color: var(--warning-color);
}

.toast.info {
    border-left-color: var(--info-color);
}

.toast i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.toast.success i { color: var(--success-color); }
.toast.error i { color: var(--error-color); }
.toast.warning i { color: var(--warning-color); }
.toast.info i { color: var(--info-color); }

.toast-content {
    flex: 1;
}

.toast-content h4 {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1rem;
}

.toast-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================
   ARTICLES GRID (index.html)
   ============================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 50px;
}

.article-card {
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid var(--border-light);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
}

.article-card:hover::before {
    opacity: 1;
}

/* Clickable Article Card */
.clickable-card {
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.clickable-card:active {
    transform: translateY(-2px) scale(0.995);
}

/* Article Thumbnail */
.article-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-extra-light) 0%, var(--bg-lighter) 100%);
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.08);
}

.article-thumbnail .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-extra-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 3.5rem;
    opacity: 0.8;
}

.article-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

/* Article Content */
.article-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 4px;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

/* Article Meta */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.article-date {
    color: var(--text-lighter);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-weight: 500;
}

.article-date i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.article-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
}

.stat i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Article Actions */
.article-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition-fast);
    min-width: 85px;
    position: relative;
    z-index: 3;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: var(--primary-extra-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.like-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.action-btn.like-btn.active i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.action-btn.comment-btn {
    background: #E8F4FD;
    border-color: #2196F3;
    color: #1976D2;
}

.action-btn.comment-btn:hover {
    background: #D1E9FF;
    border-color: #1976D2;
}

.action-btn.share-btn {
    background: #F5E8FD;
    border-color: #9C27B0;
    color: #7B1FA2;
}

.action-btn.share-btn:hover {
    background: #EEDCF7;
    border-color: #7B1FA2;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-state i {
    font-size: 5rem;
    color: var(--primary-light);
    margin-bottom: 25px;
    opacity: 0.7;
}

.empty-state h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.empty-state p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 50px 0;
}

.btn-load-more {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-width: 200px;
}

.btn-load-more:hover {
    background: linear-gradient(135deg, var(--primary-dark), #2E7D32);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-load-more:active {
    transform: translateY(-1px);
}

.btn-load-more:disabled {
    background: var(--text-lighter);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-load-more:disabled:hover {
    background: var(--text-lighter);
    transform: none;
    box-shadow: none;
}

/* Error State (for article-detail.html) */
.error-state {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.error-state i {
    font-size: 5rem;
    color: var(--error-color);
    margin-bottom: 25px;
    opacity: 0.8;
}

.error-state h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

.error-state p {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto 25px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 36px;
    }
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
    }
    
    .article-thumbnail {
        height: 200px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-links {
        gap: 25px;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Header */
    .header {
        padding: 16px 0;
    }
    
    .header .container {
        gap: 16px;
    }
    
    .logo {
        order: 1;
        flex: 1;
        min-width: 0;
        gap: 12px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-text .tagline {
        font-size: 0.8rem;
    }
    
    .search-container {
        order: 2;
        flex: 1 0 100%;
        margin: 8px 0 0 0;
        max-width: 100%;
    }
    
    .search-box {
        border-radius: 30px;
    }
    
    .search-box button {
        padding: 14px 24px;
    }
    
    /* Back Button */
    .back-btn {
        order: 3;
        margin-left: 0;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Main Content */
    main {
        padding: 32px 0;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .page-header h2 {
        font-size: 1.5rem;
    }
    
    .stats {
        align-self: flex-start;
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    /* Articles Grid */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .article-thumbnail {
        height: 180px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .article-actions {
        flex-direction: row;
    }
    
    .action-btn {
        padding: 10px;
        font-size: 0.85rem;
        min-width: 75px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .footer-logo-content {
        gap: 10px;
    }
    
    .footer-logo-img {
        width: 36px;
        height: 36px;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 20px;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        padding-top: 20px;
    }
    
    /* Common Components */
    .toast {
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 20px;
    }
    
    .btn-load-more {
        padding: 14px 28px;
        font-size: 0.95rem;
        min-width: 180px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    
    /* Header */
    .header {
        padding: 14px 0;
    }
    
    .header .container {
        gap: 14px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        width: 36px;
        height: 36px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text .tagline {
        font-size: 0.75rem;
    }
    
    .search-box {
        border-radius: 25px;
    }
    
    .search-box input {
        padding: 14px 16px 14px 48px;
        font-size: 0.95rem;
    }
    
    .search-box button {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .search-box i {
        left: 16px;
        font-size: 1rem;
    }
    
    .back-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Main Content */
    main {
        padding: 24px 0;
    }
    
    .page-header {
        margin-bottom: 28px;
        padding-bottom: 16px;
    }
    
    .page-header h2 {
        font-size: 1.3rem;
        gap: 10px;
    }
    
    .page-header h2 i {
        font-size: 1.2rem;
    }
    
    .stats {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    /* Articles Grid */
    .articles-grid {
        gap: 20px;
    }
    
    .article-thumbnail {
        height: 160px;
    }
    
    .article-content {
        padding: 18px;
        gap: 10px;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .article-excerpt {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .article-date {
        font-size: 0.85rem;
    }
    
    .stat {
        font-size: 0.85rem;
        gap: 4px;
    }
    
    .article-actions {
        gap: 10px;
    }
    
    .action-btn {
        padding: 10px;
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-logo-content {
        gap: 8px;
    }
    
    .footer-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .footer-logo h3 {
        font-size: 1.2rem;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding-top: 15px;
    }
    
    /* Common Components */
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loading p {
        font-size: 1rem;
    }
    
    .empty-state i {
        font-size: 4rem;
    }
    
    .empty-state h3 {
        font-size: 1.5rem;
    }
    
    .empty-state p {
        font-size: 0.95rem;
    }
    
    .error-state i {
        font-size: 4rem;
    }
    
    .error-state h3 {
        font-size: 1.5rem;
    }
    
    .error-state p {
        font-size: 0.95rem;
    }
    
    .btn-load-more {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .toast {
        padding: 16px 20px;
        min-width: auto;
        max-width: calc(100% - 32px);
        right: 16px;
        left: 16px;
        bottom: 16px;
    }
}

/* Very Small Mobile (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text .tagline {
        font-size: 0.7rem;
    }
    
    .search-box input {
        padding: 12px 14px 12px 44px;
        font-size: 0.9rem;
    }
    
    .search-box button {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .articles-grid {
        gap: 16px;
    }
    
    .article-thumbnail {
        height: 140px;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        padding: 12px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}