/* ============================================================
   Eddie's Glass Art Blog — Glass Aesthetic Theme
   Matches eddiesglassart.com with glassmorphism design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
    /* Primary palette — inspired by glass refracting light */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: rgba(22, 27, 34, 0.65);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    /* Accent colors — glass prism spectrum */
    --accent-teal: #0f969c;
    --accent-teal-glow: rgba(15, 150, 156, 0.3);
    --accent-coral: #f6c90e;
    --accent-coral-glow: rgba(246, 201, 14, 0.2);
    --accent-rose: #e07a5f;
    --accent-blue: #3d85c6;
    --accent-purple: #9b72cf;
    --accent-green: #81b29a;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-accent: #58a6ff;

    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(15, 150, 156, 0.3);

    /* Glassmorphism */
    --glass-blur: 12px;
    --glass-radius: 16px;
    --glass-radius-sm: 10px;

    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(15, 150, 156, 0.1);
    --shadow-hover: 0 12px 48px rgba(15, 150, 156, 0.15);

    /* Layout */
    --max-width: 1280px;
    --header-height: 72px;

    /* Pillar badge colors */
    --pillar-grief: #e07a5f;
    --pillar-workshops: #81b29a;
    --pillar-gifting: #f6c90e;
    --pillar-craft: #3d85c6;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(15, 150, 156, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(157, 114, 207, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(246, 201, 14, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-teal);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* ---- Layout Container ---- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo .logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.site-logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.site-logo .logo-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    padding: 8px 16px;
    border-radius: var(--glass-radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.btn-admin {
    background: rgba(15, 150, 156, 0.15) !important;
    border: 1px solid var(--border-accent) !important;
    color: var(--accent-teal) !important;
}

.btn-admin:hover {
    background: rgba(15, 150, 156, 0.25) !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ============================================================
   HERO SECTION (Blog Index)
   ============================================================ */
.hero {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-teal) 50%, var(--accent-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-coral));
    margin: 32px auto;
    border-radius: 2px;
}

/* ============================================================
   BLOG GRID
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 20px 0 60px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius);
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: var(--shadow-hover);
}

.blog-card:hover .card-image img {
    transform: scale(1.05);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-image .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 150, 156, 0.2), rgba(157, 114, 207, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.5;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-pillar {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    width: fit-content;
}

.pillar-grief_memorials {
    background: rgba(224, 122, 95, 0.15);
    color: var(--pillar-grief);
}

.pillar-workshops {
    background: rgba(129, 178, 154, 0.15);
    color: var(--pillar-workshops);
}

.pillar-gifting {
    background: rgba(246, 201, 14, 0.15);
    color: var(--pillar-gifting);
}

.pillar-craft_decor {
    background: rgba(61, 133, 198, 0.15);
    color: var(--pillar-craft);
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more {
    color: var(--accent-teal);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.blog-card:hover .read-more {
    gap: 8px;
}

/* ============================================================
   SINGLE POST VIEW
   ============================================================ */
.post-hero {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--glass-radius);
    margin-bottom: 40px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
}

.post-hero img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.post-hero:hover img {
    transform: scale(1.02);
}

.post-hero .expand-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-hero:hover .expand-hint {
    opacity: 1;
}

.post-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-bottom: 80px;
}

.post-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius);
    padding: 48px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-card);
}

.post-content .post-pillar {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.post-content .post-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-content .post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
}

.post-content .post-body {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.post-body h2 {
    margin: 36px 0 16px;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.post-body h3 {
    margin: 28px 0 12px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.post-body p {
    margin-bottom: 18px;
}

.post-body ul,
.post-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body a {
    color: var(--accent-teal);
    border-bottom: 1px solid rgba(15, 150, 156, 0.3);
    padding-bottom: 1px;
}

.post-body strong {
    color: var(--text-primary);
}

/* Keywords tags */
.post-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.keyword-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

/* ---- Sidebar ---- */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius);
    padding: 24px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-card .cta-link {
    display: block;
    padding: 12px 20px;
    border-radius: var(--glass-radius-sm);
    background: linear-gradient(135deg, rgba(15, 150, 156, 0.15), rgba(15, 150, 156, 0.05));
    border: 1px solid var(--border-accent);
    color: var(--accent-teal);
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.sidebar-card .cta-link:hover {
    background: linear-gradient(135deg, rgba(15, 150, 156, 0.25), rgba(15, 150, 156, 0.1));
    transform: translateY(-2px);
}

.sidebar-card .cta-link.secondary {
    background: var(--bg-glass);
    border-color: var(--border-glass);
    color: var(--text-secondary);
}

.related-post {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-glass);
    text-decoration: none;
}

.related-post:last-child {
    border-bottom: none;
}

.related-post .rp-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.related-post .rp-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.related-post:hover .rp-title {
    color: var(--accent-teal);
}

/* Back navigation */
.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding-top: 32px;
}

.back-nav:hover {
    color: var(--accent-teal);
}

/* ============================================================
   IMAGE LIGHTBOX
   ============================================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: rgba(13, 17, 23, 0.9);
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-credit {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-craft {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 8px;
    font-style: italic;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    position: relative;
    z-index: 1;
}

/* Login form */
.login-wrapper {
    max-width: 400px;
    margin: 120px auto;
    text-align: center;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius);
    padding: 48px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-card);
}

.login-card h2 {
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius-sm);
    padding: 4px;
}

.admin-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.admin-tab:hover:not(.active) {
    color: var(--text-primary);
}

.admin-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius);
    padding: 32px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-card);
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-panel h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Form elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px var(--accent-teal-glow);
}

select.form-input {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--glass-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), #0b7a7e);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-teal-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
}

.btn-danger:hover {
    background: rgba(248, 81, 73, 0.25);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--border-glass);
    border-radius: var(--glass-radius);
    padding: 48px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 24px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-teal);
    background: rgba(15, 150, 156, 0.05);
}

.upload-area .upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.upload-area p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-area .upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Photo gallery grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--glass-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-item .photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(248, 81, 73, 0.85);
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.photo-item:hover .photo-delete {
    display: flex;
}

/* Post list in admin */
.admin-post-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-post-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius-sm);
    transition: border-color 0.3s ease;
}

.admin-post-item:hover {
    border-color: var(--border-glass-hover);
}

.admin-post-item .post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.admin-post-item .post-info {
    flex: 1;
}

.admin-post-item .post-info h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-post-item .post-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Location tags */
.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
    padding: 8px 0;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(15, 150, 156, 0.12);
    border: 1px solid rgba(15, 150, 156, 0.25);
    color: var(--accent-teal);
}

.location-tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.location-tag button:hover {
    opacity: 1;
}

/* Status messages */
.status-message {
    padding: 12px 20px;
    border-radius: var(--glass-radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.status-success {
    background: rgba(63, 185, 80, 0.15);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: #3fb950;
}

.status-error {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: #f85149;
}

.status-info {
    background: rgba(15, 150, 156, 0.15);
    border: 1px solid rgba(15, 150, 156, 0.3);
    color: var(--accent-teal);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Cron info box */
.cron-info {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--glass-radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.cron-info code {
    display: block;
    padding: 12px;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: var(--accent-teal);
    word-break: break-all;
}

/* Checkbox toggle */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle:checked {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}

.toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle:checked::before {
    transform: translateX(22px);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    color: var(--text-muted);
}

.no-posts .no-posts-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-posts h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border-radius: var(--glass-radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.pagination .current {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-content-wrapper {
        grid-template-columns: 1fr;
    }

    .post-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .header-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--border-glass);
    }

    .menu-toggle {
        display: block;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .post-content .post-title {
        font-size: 1.6rem;
    }

    .post-content {
        padding: 24px;
    }

    .admin-tabs {
        flex-wrap: wrap;
    }

    .admin-tab {
        min-width: 45%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .card-image {
        height: 180px;
    }

    .post-content {
        padding: 20px;
    }

    .login-card {
        padding: 32px 24px;
    }
}