/* Blog & Admin Specific Styles */
:root {
    --blog-card-bg: rgba(255, 255, 255, 0.05);
    --blog-card-hover: rgba(255, 255, 255, 0.1);
    --admin-sidebar-bg: #1a1f2b;
}

/* Blog List */
.blog-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2b 100%);
    text-align: left;
    color: white;
}

.blog-hero .hero-title {
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    color: #4dabf7; /* Lighter Blue */
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-hero .ia-highlight {
    color: #008fd3; /* Original Primary Blue (Good) */
}

.blog-hero .section-desc {
    color: #cbd5e0; /* Lighter Grey for better contrast */
    font-size: 1.15rem;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--blog-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    background: var(--blog-card-hover);
    border-color: var(--accent-color);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
    flex-grow: 1;
}

.blog-card-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.blog-card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: white;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Post View */
.post-container {
    max-width: 800px;
    margin: 140px auto 80px;
    padding: 0 20px;
}

.post-header {
    text-align: center;
    margin-bottom: 50px;
}

.post-title {
    font-size: 42px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    color: #718096;
    font-size: 14px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #e2e8f0;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

/* --- ADMIN DASHBOARD PREMIUM OVERHAUL --- */

.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #0b0f19 !important; /* Deepest Navy */
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background-color: #111827 !important;
    border-right: 1px solid #1f2937;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .logo {
    margin-bottom: 40px;
    text-align: center;
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.admin-nav-item {
    margin-bottom: 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #9ca3af !important;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background-color: #1f2937;
    color: #ffffff !important;
}

.admin-nav-link.active i {
    color: #3b82f6;
}

/* Main Content Area */
.admin-main {
    flex-grow: 1;
    padding: 50px 80px;
    overflow-y: auto;
}

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

.admin-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
}

/* Form Elements */
.admin-form-group {
    margin-bottom: 24px;
}

.admin-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af !important;
    margin-bottom: 8px;
}

.admin-input, .admin-select, .admin-textarea {
    width: 100%;
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff !important;
    font-size: 16px;
    transition: 0.2s;
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    border-color: #3b82f6 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.admin-title-input {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #374151 !important;
    border-radius: 0 !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    padding: 10px 0 !important;
    margin-bottom: 40px !important;
}

/* EditorJS Custom Theme */
#editorjs {
    background-color: #111827 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 16px;
    padding: 40px;
    min-height: 500px;
    color: #e5e7eb !important;
}

/* EditorJS UI Visibility Overrides */
.ce-paragraph, .ce-header, .cdx-list__item, .cdx-quote__text {
    color: #e5e7eb !important;
}

.ce-toolbar__content, .ce-toolbar__actions {
    color: #ffffff !important;
}

.ce-popover, .ce-settings, .ce-inline-toolbar {
    background: #1f2937 !important;
    border: 1px solid #374151 !important;
    color: #ffffff !important;
}

.ce-popover-item:hover, .ce-inline-tool:hover {
    background: #374151 !important;
}

.ce-popover-item__title, .ce-inline-tool, .ce-toolbar__plus, .ce-toolbar__settings-btn {
    color: #ffffff !important;
}

/* Buttons */
.btn-publish {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-publish:hover {
    background-color: #2563eb !important;
    transform: translateY(-1px);
}

.btn-preview {
    background-color: transparent !important;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid #374151 !important;
    cursor: pointer;
    transition: 0.2s;
}

.btn-preview:hover {
    background-color: #1f2937 !important;
}

.btn-logout {
    color: #f87171 !important;
    background: transparent;
    border: 1px solid #f87171;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-logout:hover {
    background: rgba(248, 113, 113, 0.1);
}

/* --- LOGIN PAGE PREMIUM --- */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0b0f19 !important;
}

.login-card {
    background-color: #111827 !important;
    padding: 50px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid #1f2937;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-card p {
    color: #9ca3af !important;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-auth-form input {
    width: 100%;
    background-color: #1f2937 !important;
    border: 1px solid #374151 !important;
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff !important;
    margin-bottom: 12px;
}

.sso-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.google-btn { background-color: #ffffff !important; color: #111827 !important; }
.microsoft-btn { background-color: #00a4ef !important; color: #ffffff !important; }

.sso-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
