/* Sharp, Modern Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #004b99; /*#2563eb;*/
    --primary-dark:#004b99;  /*#1d4ed8;*/
    --primary-light: #004b99; /*#3b82f6;*/
    --secondary: #64748b;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sharp Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border-radius: var(--radius);
}

.nav-logo h1 {
    color: var(--primary);
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary);
    color: white;
}

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

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 0.875rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 0.5rem;
    border-radius: 0%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-toggle:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: calc(100%);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 12rem;
    display: none;
    z-index: 1001;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
    transform: translateX(4px);
}

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

.dropdown-item i {
    width: 1rem;
    text-align: center;
    color: var(--gray-500);
}

.dropdown-item:hover i {
    color: var(--primary);
}

/* Sharp Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Main Content Layout */
.main-content {
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.brand-watermark {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    opacity: 0.1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.brand-watermark:hover {
    opacity: 0.2;
}

.watermark-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: grayscale(100%);
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sharp Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text {
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Sharp Cards */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

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

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: var(--radius);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

/* Sharp Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 7rem;
    border: 1px solid var(--gray-200);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

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

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-card p {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.025em;
}

/* Sharp Profile Section */
.profile-container {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

.profile-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 0%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    letter-spacing: -0.025em;
}

.profile-username {
    opacity: 0.9;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.profile-bio {
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.profile-details {
    padding: 2rem;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.profile-info-item i {
    color: var(--primary);
    width: 1.25rem;
    text-align: center;
    font-size: 1.125rem;
}

/* Sharp Posts Grid - Max 2 columns */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
}

.post-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.post-card:hover::before {
    transform: scaleX(1);
}

.post-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0%;
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.post-author-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.post-author-info p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.post-content {
    padding: 1rem 1.5rem 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    line-height: 1.4;
}

.post-excerpt {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.875rem;
}

.post-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin: 1rem 0;
    border-radius: var(--radius);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.post-actions {
    display: flex;
    gap: 1.5rem;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.post-action:hover {
    color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-1px);
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tag {
    background: var(--gray-100);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Sharp Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    font-size: 1.875rem;
    color: var(--gray-800);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    min-width: 280px;
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.tag-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: white;
    min-width: 160px;
    transition: all 0.2s ease;
}

.tag-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* User Search Results */
.user-search-result {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-search-result:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.user-search-result .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 0%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-search-result .user-info {
    flex: 1;
}

.user-search-result .user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.user-search-result .user-username {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.user-search-result .user-bio {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.user-search-result .user-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-search-result .user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-search-result .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.search-btn {
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Footer Styles */
.footer {
    background: var(--gray-900);
    color: white;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-800);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

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

.footer-brand p {
    color: var(--gray-300);
    line-height: 1.6;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    font-size: 0.9rem;
}

.contact-form input {
    color: var(--gray-800);
}

.contact-form textarea {
    color: var(--gray-800) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-500);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 177, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Map Container */
.map-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.us-map {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--gray-700);
    background: var(--gray-800);
}

.us-map iframe {
    border-radius: var(--radius-lg);
}

.location-info p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-info i {
    color: var(--primary);
    width: 16px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 1.5rem 2rem;
    background: var(--gray-950);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-400);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .us-map {
        height: 150px;
    }
}

/* Sharp Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 32rem;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.modal-content.large {
    max-width: 48rem;
}

.modal-header {
    padding: 2rem 2rem 0;
    position: relative;
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.close {
    color: var(--gray-500);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0%;
    transition: all 0.2s ease;
}

.close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Informational Modal Specific Styles */
.info-modal-content {
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.info-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    text-align: center;
}

.info-modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.info-modal-body {
    padding: 2rem;
}

.info-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.info-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-text-content h3 {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.info-text-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.info-text-content ul {
    margin: 0;
    padding-left: 1.5rem;
}

.info-text-content li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.info-image-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.info-modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0 0 0;
    border-top: 1px solid var(--gray-200);
    margin-top: 2rem;
    position: relative;
}

.info-modal-actions .btn {
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.info-modal-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive design for informational modal */
@media (max-width: 768px) {
    .info-content-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .info-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .info-modal-body {
        padding: 1.5rem;
    }
}

/* Sharp Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 6rem;
    line-height: 1.6;
}

/* Approval Status */
.approval-status {
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    border-left: 4px solid;
    font-weight: 500;
}

.approval-status.warning {
    border-left-color: var(--warning);
    color: var(--warning);
    background: #fef3c7;
}

.approval-status.danger {
    border-left-color: var(--danger);
    color: var(--danger);
    background: #fee2e2;
}

.approval-status i {
    font-size: 1.125rem;
}

/* Admin Interface */
.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.5rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 0%;
    object-fit: cover;
}

.user-details h4 {
    margin: 0 0 0.25rem 0;
    color: var(--gray-800);
}

.user-details p {
    margin: 0 0 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.user-role, .user-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.user-role.admin {
    background: var(--danger);
    color: white;
}

.user-role.moderator {
    background: var(--warning);
    color: white;
}

.user-role.user {
    background: var(--gray-500);
    color: white;
}

.user-status.pending {
    background: var(--warning);
    color: white;
}

.user-status.approved {
    background: var(--success);
    color: white;
}

.user-status.rejected {
    background: var(--danger);
    color: white;
}

.user-status.suspended {
    background: var(--gray-600);
    color: white;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-select, .role-select {
    padding: 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.approval-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-800);
}

.approval-info p {
    margin: 0 0 0.25rem 0;
    color: var(--gray-600);
}

.approval-date {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.approval-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Post Status Badges */
.post-status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.75rem;
}

.post-status-badge.draft {
    background: var(--warning);
    color: white;
}

.post-status-badge.published {
    background: var(--success);
    color: white;
}

.post-status-badge.archived {
    background: var(--gray-600);
    color: white;
}

/* Edit Post Button */
.edit-post-btn {
    color: var(--primary) !important;
    font-weight: 500;
}

.edit-post-btn:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline;
}

/* Delete Post Button */
.delete-post-btn {
    color: var(--danger) !important;
    font-weight: 500;
}

.delete-post-btn:hover {
    color: #dc2626 !important;
    text-decoration: underline;
}

/* User Profile Links */
.user-profile-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.user-profile-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* User Posts Section */
.user-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 0%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.user-details h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.user-details p {
    margin: 0;
    font-size: 1.1rem;
}

/* Featured Posts - Homepage (Max 2 per row) */
.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
    position: relative;
}

/* Ensure maximum of 2 posts per row on homepage */
.featured-posts-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Responsive: single column on smaller screens */
@media (max-width: 768px) {
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
}

.featured-posts-grid .post-card {
    width: 100%;
}

/* Regular Posts - Full Width - Max 2 columns */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.posts-grid .post-card {
    width: 100%;
}

/* Post Cards - Full Width */
.post-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    width: 100%;
}

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

/* Featured Post Cards (larger) */
.featured-posts-grid .post-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
    padding: 0;
}

.featured-posts-grid .post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Post Images - Full Width */
.post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid var(--gray-200);
}

.featured-posts-grid .post-card .post-image {
    height: 400px;
}

/* Post Content - Full Width */
.post-content {
    padding: 2rem;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.featured-posts-grid .post-card:nth-child(3n+1) .post-title {
    font-size: 2rem;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Featured Post Badge */
.featured-post-badge {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.featured-post-badge i {
    margin-right: 0.25rem;
    color: #fff3cd;
}

/* Post Meta */
.post-meta {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-action {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-action:hover {
    color: var(--primary);
}

.post-action.liked {
    color: var(--danger);
}

.post-action i {
    font-size: 1rem;
}

/* Rich Text Editor */
.rich-text-toolbar {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.rich-text-editor {
    min-height: 200px;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: white;
    outline: none;
    font-family: inherit;
    line-height: 1.6;
    overflow-y: auto;
}

.rich-text-editor:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rich-text-editor[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: var(--text-tertiary);
    pointer-events: none;
}

.rich-text-editor h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: var(--text-primary);
}

.rich-text-editor blockquote {
    border-left: 4px solid var(--primary);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    font-style: italic;
    color: var(--text-secondary);
}

.rich-text-editor ul, .rich-text-editor ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.rich-text-editor li {
    margin: 0.25rem 0;
}

.rich-text-editor img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* Rich Content Indicator */
.rich-content-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.rich-content-indicator i {
    font-size: 0.7rem;
}

/* Post Content Styling */
.post-content-full {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content-full h1,
.post-content-full h2,
.post-content-full h3,
.post-content-full h4,
.post-content-full h5,
.post-content-full h6 {
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.post-content-full h1 { font-size: 2rem; }
.post-content-full h2 { font-size: 1.75rem; }
.post-content-full h3 { font-size: 1.5rem; }
.post-content-full h4 { font-size: 1.25rem; }
.post-content-full h5 { font-size: 1.1rem; }
.post-content-full h6 { font-size: 1rem; }

.post-content-full p {
    margin: 1rem 0;
    line-height: 1.8;
}

.post-content-full blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    font-style: italic;
    color: var(--text-secondary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content-full ul,
.post-content-full ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.post-content-full li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.post-content-full strong,
.post-content-full b {
    font-weight: 600;
    color: var(--text-primary);
}

.post-content-full em,
.post-content-full i {
    font-style: italic;
}

.post-content-full u {
    text-decoration: underline;
}

.post-content-full img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    display: block;
}

.post-content-full a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.post-content-full a:hover {
    border-bottom-color: var(--primary);
}

/* Image Upload Modal - Higher z-index to appear above other modals */
#image-upload-modal {
    z-index: 2000 !important;
}

#image-upload-modal .modal-content {
    max-width: 500px;
    width: 90%;
}

.image-upload-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.image-preview-container {
    border: 1px solid #e1e5e9;
    border-radius: var(--radius-md);
    padding: 1rem;
    background: #f8f9fa;
}

#image-preview-img {
    display: block;
    margin: 0 auto;
}

/* Mobile Responsive for Rich Text Editor */
@media (max-width: 768px) {
    .rich-text-toolbar {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .toolbar-btn {
        padding: 0.4rem;
        min-width: 36px;
        font-size: 0.8rem;
    }
    
    .rich-text-editor {
        min-height: 150px;
        padding: 0.75rem;
    }
}

/* Sharp Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Featured Posts - Mobile */
    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-posts-grid .post-card .post-image {
        height: 250px;
    }
    
    .featured-posts-grid .post-card .post-title {
        font-size: 1.5rem;
    }
    
    /* Regular Posts - Mobile */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Featured Posts - Mobile */
    .featured-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--gray-100);
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .auth-buttons, .user-menu {
        width: 100%;
        padding: 1rem 2rem;
        justify-content: center;
        gap: 1rem;
    }
    
    .user-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin-top: 0.5rem;
        border-radius: var(--radius);
    }
    
    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    
    /* Section Headers */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input, .tag-select {
        width: 100%;
    }
    
    /* Posts Grid */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .post-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .post-action {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .post-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .post-author-avatar {
        width: 60px;
        height: 60px;
    }
    
    /* Dashboard */
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        order: 2;
        margin-top: 1rem;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        padding-top: 1rem;
        z-index: 100;
    }
    
    .dashboard-main {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
    
    .modal-content.large {
        width: 95%;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .close {
        right: 1rem;
        top: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        border-radius: var(--radius);
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 2rem;
    }
    
    /* Admin Interface */
    .user-row, .approval-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .user-actions, .approval-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Brand Watermark */
    .brand-watermark {
        display: none;
    }
    
    /* Mobile Notification */
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: calc(100% - 20px);
    }
    
    .notification-content {
        padding: 1rem;
    }
    
    .notification-message {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .post-excerpt {
        font-size: 0.875rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn, .post-action, .nav-link {
        min-height: 44px; /* iOS minimum touch target */
    }
    
    .post-card {
        cursor: pointer;
    }
    
    .post-card:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
}

/* Form Footer */
.form-footer {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--gray-200);
}

.text-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.text-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Verification Actions */
.verification-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.verification-actions .btn {
    flex: 1;
    max-width: 200px;
}

/* Custom Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.notification-icon {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    line-height: 1.5;
    white-space: pre-line;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.notification.success {
    border-left-color: var(--success);
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.error .notification-icon {
    color: var(--danger);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 0%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .brand-watermark {
        display: none;
    }
}

/* Pagination Styles */
.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination-info {
    margin-bottom: 1rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Homepage Pagination */
#home-pagination {
    margin-top: 2rem;
    text-align: center;
}

#home-pagination .pagination-info {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--gray-700);
}

#home-pagination .pagination-controls {
    justify-content: center;
    gap: 1.5rem;
}

/* Load More Styles */
.load-more-container {
    margin-top: 3rem;
    text-align: center;
}

/* Posts Loading Overlay */
.posts-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Posts Grid Loading State */
.posts-grid-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

.posts-grid-loading .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.posts-grid-loading .loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 0%;
    animation: spin 1s linear infinite;
}

.posts-grid-loading .loading-spinner .loading-text {
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

/* No Posts State */
.no-posts-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-200);
}

/* Post Views Styling */
.post-views {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Hide post-views div when empty (no view count) */
.post-views:empty {
    display: none;
}

.no-posts-content {
    text-align: center;
}

.no-posts-content p {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin: 0;
}

.no-posts-content .icon {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.posts-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.posts-loading-overlay .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.posts-loading-overlay .loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary);
    border-radius: 0%;
    animation: spin 1s linear infinite;
}

.posts-loading-overlay .loading-spinner .loading-text {
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 500;
}

.load-more-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.load-more-info {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

.background-loading-indicator {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.background-loading-indicator small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.background-loading-indicator i {
    color: var(--primary);
    animation: pulse 2s infinite;
}

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

.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Sharp Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}



textarea#contact-message {
    color: var(--gray-800) !important;
}

.rich-content-indicator, #test-rich-text {
    display: none !important;
}

.post-content {
    min-height: 80%;
}
.post-meta {
    display: none;
}
@media (min-width: 900px) {
  div#info-modal, div#info-modal * {
      overflow: hidden;
  } 
  .info-modal-actions {
      position: absolute;
      bottom: 10px;
  }
}