/* ============================================
   BEST OF NORWICH - MODERN DESIGN
   Green Color Scheme
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties for Colors */
:root {
    /* Subtle Green & Blue Color Palette */
    --primary-cyan: #419889;
    --primary-green: #419889;
    --dark-cyan: #2d7565;
    --dark-green: #2d7565;
    --light-cyan: #e0f2ee;
    --light-green: #e0f2ee;
    --darker-cyan: #1a4d3e;
    --darker-green: #1a4d3e;

    /* Neutral Colors */
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;

    /* Utility Colors */
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --success: #10b981;

    /* Refined Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 0.75em;
    letter-spacing: -0.6px;
    font-family: 'Space Grotesk', sans-serif;
}

h1 {
    font-size: 2.75rem;
    color: var(--gray-900);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.125rem;
    color: var(--gray-900);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.8px;
}

h3 {
    font-size: 1.375rem;
    color: var(--gray-800);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.container-wide {
    max-width: 1400px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: linear-gradient(135deg, var(--darker-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    padding: 0;
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-title a:hover {
    opacity: 0.9;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-login, .btn-logout {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(65, 152, 137, 0.2);
}

.btn-login:hover, .btn-logout:hover {
    background: linear-gradient(135deg, var(--dark-cyan) 0%, var(--primary-cyan) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(65, 152, 137, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Alerts & Messages */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background-color: rgba(65, 152, 137, 0.08);
    color: var(--dark-cyan);
    border-left-color: var(--primary-cyan);
}

.alert-error {
    background-color: #fef2f2;
    color: #7f1d1d;
    border-left-color: var(--danger);
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left-color: var(--info);
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left-color: var(--warning);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 24px rgba(65, 152, 137, 0.25);
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-form input[type="search"]:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.search-form button {
    padding: 0.875rem 2rem;
    background-color: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.search-form button:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-cyan);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   HOME LAYOUT - 3 COLUMNS
   ============================================ */

.home-layout {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: 220px 1fr 290px;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .home-layout {
        grid-template-columns: 1fr 270px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .home-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   LEFT SIDEBAR - CATEGORIES
   ============================================ */

.sidebar-left {
    position: sticky;
    top: 110px;
}

.sidebar-left .widget {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-left .widget:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-cyan);
    color: var(--gray-900);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.category-link:hover {
    background-color: rgba(65, 152, 137, 0.12);
    color: var(--primary-cyan);
    padding-left: 1.5rem;
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.2);
}

.category-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(65, 152, 137, 0.3);
}

.empty-state {
    color: var(--gray-600);
    font-size: 0.9rem;
    padding: 1rem 0;
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    min-width: 0;
}

.main-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.post-item {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(65, 152, 137, 0.2);
}

.post-item-header {
    margin-bottom: 1rem;
}

.post-item-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.625rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.post-item-header a {
    color: var(--gray-900);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-item-header a:hover {
    color: var(--primary-cyan);
}

.post-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    flex-wrap: wrap;
}

.meta-divider {
    color: var(--gray-400);
}

.meta-item {
    display: inline;
}

.post-description {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(65, 152, 137, 0.1) 0%, rgba(45, 117, 101, 0.08) 100%);
    color: var(--dark-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(65, 152, 137, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    border-color: var(--dark-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.3);
}

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

.read-more {
    color: var(--primary-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more:hover {
    color: var(--dark-cyan);
    gap: 0.5rem;
}

.like-count {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.empty-state-box {
    background: white;
    border-radius: 8px;
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    color: var(--gray-600);
}

/* ============================================
   RIGHT SIDEBAR - FEATURED
   ============================================ */

.sidebar-right {
    position: sticky;
    top: 100px;
}

.sidebar-right .widget {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(45, 117, 101, 0.08);
    border: 1px solid rgba(65, 152, 137, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-right .widget:hover {
    box-shadow: 0 8px 20px rgba(45, 117, 101, 0.12);
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.featured-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(65, 152, 137, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.featured-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--gray-900);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
}

.featured-item:hover h4 {
    color: var(--primary-cyan);
}

.featured-item a {
    color: var(--gray-900);
    text-decoration: none;
}

.featured-item a:hover {
    color: var(--primary-cyan);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-excerpt {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.45;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================
   POST DETAIL PAGE
   ============================================ */

.post-detail {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.post-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(65, 152, 137, 0.2);
}

.post-detail-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.post-detail-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.post-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
}

.post-detail-content p {
    margin-bottom: 1.25rem;
}

.post-detail-content blockquote {
    border-left: 4px solid var(--primary-cyan);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--gray-700);
    font-style: italic;
    background: rgba(65, 152, 137, 0.05);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 4px;
}
    font-style: italic;
}

.post-detail-content ul,
.post-detail-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-detail-content li {
    margin-bottom: 0.5rem;
}

.post-detail-content code {
    background-color: var(--gray-200);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.post-detail-content pre {
    background-color: var(--gray-900);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-detail-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}

/* ============================================
   RELATED POSTS
   ============================================ */

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-300);
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   COMMENTS SECTION
   ============================================ */

.comments-section {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.comment-form {
    background-color: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(65, 152, 137, 0.15);
}

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

.form-group button {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(65, 152, 137, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.form-group button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(65, 152, 137, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.form-group button:hover::before {
    left: 100%;
}

.form-group button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(65, 152, 137, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: var(--shadow-md);
}

.comment-author {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}

.comment-content {
    color: var(--gray-800);
    line-height: 1.6;
}

/* ============================================
   LIKE BUTTON
   ============================================ */

.like-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(65, 152, 137, 0.15);
}

.like-button:hover {
    background-color: rgba(65, 152, 137, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(65, 152, 137, 0.25);
}

.like-button.liked {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    border-color: var(--dark-cyan);
}

.like-button .heart {
    display: inline-block;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-link,
.pagination-dots {
    padding: 0.6rem 0.9rem;
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-cyan);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

.pagination-link:hover {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.3);
}

.pagination-current {
    padding: 0.6rem 0.9rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.3);
}

.pagination-dots {
    border: none;
    color: var(--gray-600);
    cursor: default;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(65, 152, 137, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: rgba(65, 152, 137, 0.1);
    color: var(--dark-cyan);
    border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
    background-color: rgba(65, 152, 137, 0.15);
    transform: translateY(-2px);
}

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

.btn-danger:hover {
    opacity: 0.9;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 1px rgba(65, 152, 137, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(65, 152, 137, 0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-form input {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(65, 152, 137, 0.15);
}

.login-form button {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(65, 152, 137, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

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

.login-form button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(65, 152, 137, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

.login-form button:hover::before {
    left: 100%;
}

.login-form button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(65, 152, 137, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-link {
    text-align: center;
    margin-top: 1rem;
}

.back-link a {
    color: var(--primary-cyan);
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link a:hover {
    color: var(--dark-cyan);
}

/* ============================================
   LOGIN HUB
   ============================================ */

.login-hub-container {
    text-align: center;
    padding: 2rem 0;
}

.login-hub-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.login-hub-container > p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(65, 152, 137, 0.08);
}

.login-card:hover {
    box-shadow: 0 20px 60px rgba(65, 152, 137, 0.12);
    transform: translateY(-6px);
    border-color: rgba(65, 152, 137, 0.15);
}

.login-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

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

.admin-dashboard {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.admin-header h2 {
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.admin-nav {
    display: flex;
    gap: 1rem;
}

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

.dashboard-header h2 {
    color: var(--gray-900);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.posts-table-wrapper {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.posts-table thead {
    background-color: rgba(65, 152, 137, 0.08);
    border-bottom: 2px solid var(--primary-cyan);
}

.posts-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
}

.posts-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-300);
}

.posts-table tbody tr:hover {
    background-color: var(--gray-50);
}

.title-cell a {
    color: var(--primary-cyan);
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-cell a:hover {
    color: var(--dark-cyan);
    text-decoration: underline;
}

.tag-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(65, 152, 137, 0.1) 0%, rgba(45, 117, 101, 0.08) 100%);
    color: var(--dark-cyan);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.25rem;
    border: 1px solid rgba(65, 152, 137, 0.3);
    font-weight: 500;
}

.no-tags {
    color: var(--gray-500);
    font-style: italic;
}

.featured-cell {
    text-align: center;
}

.btn-toggle-featured {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.featured-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background-color: var(--gray-200);
    color: var(--gray-700);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-300);
}

.featured-badge.active {
    background-color: #fbbf24;
    color: #78350f;
    border-color: #f59e0b;
}

.btn-toggle-featured:hover .featured-badge {
    transform: scale(1.05);
}

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

.btn-edit,
.btn-delete,
.btn-logout {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    color: var(--primary-cyan);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    background: white;
}

.btn-edit:hover {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.3);
}

.btn-delete {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-delete:hover {
    background-color: var(--danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-logout {
    border-color: var(--gray-400);
    color: var(--gray-700);
    background: white;
}

.btn-logout:hover {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}

.empty-state {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-state p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

.empty-state a {
    color: var(--primary-cyan);
    font-weight: 600;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.empty-state a:hover {
    color: var(--dark-cyan);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.dashboard-table thead {
    background-color: rgba(65, 152, 137, 0.08);
    border-bottom: 2px solid var(--primary-cyan);
}

.dashboard-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
}

.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-300);
}

.dashboard-table tbody tr:hover {
    background-color: var(--gray-50);
}

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

.dashboard-table .actions a {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-cyan);
    border-radius: 8px;
    color: var(--primary-cyan);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-table .actions a:hover {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--dark-cyan) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 152, 137, 0.3);
}

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

footer {
    background: linear-gradient(135deg, var(--darker-cyan) 0%, var(--dark-cyan) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--primary-cyan);
}

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

footer h4 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.3px;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

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

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

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .search-form {
        flex-direction: column;
    }

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

    .post-detail {
        padding: 1.5rem;
    }

    .post-detail-title {
        font-size: 1.75rem;
    }

    .post-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pagination {
        font-size: 0.875rem;
    }

    .pagination a,
    .pagination span {
        padding: 0.4rem 0.6rem;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    footer .container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .hero {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .login-box {
        padding: 1.5rem;
        max-width: 100%;
    }

    .dashboard-table {
        font-size: 0.875rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-muted {
    color: var(--gray-600);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
