/**
 * REJP Pro Theme - Main CSS
 * Clean, minimal, modern design
 */

/* ========================================
   VARIABLES & RESET
======================================== */

:root {
    /* Colors */
    --color-primary: #0066FF;
    --color-black: #000000;
    --color-gray-900: #1a1a1a;
    --color-gray-800: #333333;
    --color-gray-700: #4a4a4a;
    --color-gray-600: #666666;
    --color-gray-500: #999999;
    --color-gray-400: #cccccc;
    --color-gray-300: #e0e0e0;
    --color-gray-200: #f0f0f0;
    --color-gray-100: #f8f8f8;
    --color-white: #ffffff;
    
    /* Status colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-base-size: 16px;
    --line-height: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-color: var(--color-gray-300);
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px 0 rgba(0, 0, 0, 0.12);
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 20px;
    
    /* Header */
    --header-height: 70px;
}

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

html {
    font-size: var(--font-base-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    line-height: var(--line-height);
    color: var(--color-gray-900);
    background: var(--color-white);
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-black);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

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

/* ========================================
   LAYOUT
======================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.site-main {
    min-height: calc(100vh - var(--header-height) - 300px);
    padding: var(--spacing-xl) 0;
}

/* ========================================
   HEADER
======================================== */

.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-branding a {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
}

.custom-logo-link img {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu li a {
    color: var(--color-gray-800);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--color-primary);
    background: var(--color-gray-100);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    border-color: var(--color-primary);
}

.user-menu-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: var(--spacing-sm);
    color: var(--color-gray-800);
    border-bottom: 1px solid var(--color-gray-200);
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu,
.mobile-menu-overlay {
    display: none;
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    line-height: 1;
}

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

.btn-primary:hover {
    background: #0052cc;
    opacity: 1;
}

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

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   POSTS GRID
======================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.posts-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Post Card */
.post-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: var(--spacing-md);
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.875rem;
    border-radius: 999px;
}

.category-tag:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.post-card-title {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.post-card-title a {
    color: var(--color-black);
}

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

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-gray-600);
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.post-author a {
    color: var(--color-gray-800);
}

.post-excerpt {
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.read-more {
    color: var(--color-primary);
    font-weight: 500;
}

/* ========================================
   SINGLE POST
======================================== */

.single-guide {
    max-width: 800px;
    margin: 0 auto;
}

.post-featured-image {
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.post-header {
    margin-bottom: var(--spacing-xl);
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.post-meta svg {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
}

.post-content img {
    margin: var(--spacing-lg) 0;
    border-radius: var(--border-radius);
}

.post-content h2,
.post-content h3 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.post-content p {
    margin-bottom: var(--spacing-md);
}

.post-content ul,
.post-content ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.post-content li {
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   AUTHOR BOX
======================================== */

.author-box {
    background: var(--color-gray-100);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.author-box-header h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.author-box-content {
    display: flex;
    gap: var(--spacing-lg);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-details {
    flex: 1;
}

.author-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.author-name a {
    color: var(--color-black);
}

.author-company,
.author-experience {
    margin-bottom: 0.5rem;
    color: var(--color-gray-700);
}

.author-bio {
    margin: var(--spacing-sm) 0;
    color: var(--color-gray-700);
    line-height: 1.6;
}

.author-contact {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-800);
}

.contact-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.zalo-btn:hover {
    background: #0068ff;
    color: white;
    border-color: #0068ff;
}

.line-btn:hover {
    background: #00b900;
    color: white;
    border-color: #00b900;
}

.phone-btn:hover {
    background: var(--color-success);
    color: white;
    border-color: var(--color-success);
}

/* ========================================
   AUTHOR PROFILE PAGE
======================================== */

.profile-banner {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0052cc 100%);
    margin-bottom: -80px;
}

.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-banner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0052cc 100%);
}

.profile-header {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-xl);
}

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

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    box-shadow: var(--shadow);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-company,
.profile-experience {
    margin-bottom: 0.5rem;
    color: var(--color-gray-700);
    font-size: 1.125rem;
}

.profile-bio {
    margin-top: var(--spacing-sm);
    color: var(--color-gray-700);
    line-height: 1.6;
}

.profile-contact {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-item {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-gray-600);
    font-size: 1rem;
}

/* ========================================
   AGENTS GRID
======================================== */

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.agent-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.agent-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.agent-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
}

.agent-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.agent-name a {
    color: var(--color-black);
}

.agent-company,
.agent-experience {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.agent-bio {
    color: var(--color-gray-700);
    margin: var(--spacing-sm) 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.agent-stats {
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-md) 0;
    margin: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.agent-stat {
    text-align: center;
}

.agent-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.agent-stat span {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.agent-actions {
    margin-top: var(--spacing-md);
}

/* ========================================
   DASHBOARD
======================================== */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-gray-600);
    font-size: 1rem;
}

.dashboard-section {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.dashboard-section h2 {
    margin-bottom: var(--spacing-lg);
}

/* Posts Table */
.posts-table {
    overflow-x: auto;
}

.posts-table table {
    width: 100%;
    border-collapse: collapse;
}

.posts-table th,
.posts-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.posts-table th {
    font-weight: 600;
    background: var(--color-gray-100);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
}

.status-published {
    background: #d1fae5;
    color: #065f46;
}

.status-draft {
    background: #fef3c7;
    color: #92400e;
}

.status-pending {
    background: #dbeafe;
    color: #1e40af;
}

.post-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.post-actions a {
    color: var(--color-primary);
    font-size: 0.875rem;
}

/* ========================================
   FORMS
======================================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-gray-800);
}

.required {
    color: var(--color-error);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.form-actions {
    margin-top: var(--spacing-lg);
}

.form-message {
    margin-top: var(--spacing-md);
}

.form-message .success,
.form-message .error,
.form-message .loading {
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-sm);
}

.form-message .success {
    background: #d1fae5;
    color: #065f46;
}

.form-message .error {
    background: #fee2e2;
    color: #991b1b;
}

.form-message .loading {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

/* ========================================
   ALERTS
======================================== */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.alert h3 {
    margin-bottom: var(--spacing-sm);
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* ========================================
   PAGINATION
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: var(--spacing-xl) 0;
}

.pagination a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-gray-800);
}

.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

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

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--color-gray-900);
    color: var(--color-gray-400);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: var(--color-gray-400);
}

.footer-column a:hover {
    color: var(--color-white);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-gray-800);
}

.footer-menu {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

/* ========================================
   SCROLL TO TOP
======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0052cc;
    transform: translateY(-4px);
}

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

@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-contact {
        justify-content: center;
    }
    
    .author-box-content {
        flex-direction: column;
        text-align: center;
    }
    
    .author-contact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        display: none;
    }
    
    /* Mobile Menu */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        z-index: 2000;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }
    
    .mobile-nav-menu {
        list-style: none;
        padding: var(--spacing-md);
    }
    
    .mobile-nav-menu li {
        margin-bottom: var(--spacing-sm);
    }
    
    .mobile-nav-menu a {
        display: block;
        padding: var(--spacing-sm);
        color: var(--color-gray-800);
    }
    
    .mobile-menu-actions {
        padding: var(--spacing-md);
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .posts-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 15px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
