:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --brand-primary: #0056b3;
    --brand-accent: #00a8ff;
    --highlight-bg: #eef6ff;
    --highlight-border: #0056b3;
    --quote-bg: #fff8e6;
    --quote-border: #ffb400;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --header-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --header-text: #ffffff;
    --star-active: #ffc107;
    --star-inactive: #cbd5e1;
}

body.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --brand-primary: #38bdf8;
    --brand-accent: #0284c7;
    --highlight-bg: #0369a120;
    --highlight-border: #38bdf8;
    --quote-bg: #78350f20;
    --quote-border: #f59e0b;
    --border-color: #334155;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --header-bg: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --header-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.75;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.edcell-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #94a3b8;
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.main-content {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.cta-container {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.5);
    background: linear-gradient(135deg, #0066cc 0%, #004b99 100%);
}

.btn-icon {
    font-size: 1.25rem;
}

.blog-post {
    background: var(--bg-card);
}

.post-header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 2rem;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.post-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

.topic-section {
    margin-bottom: 2.5rem;
}

.topic-section h2 {
    font-size: 1.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    border-left: 4px solid var(--brand-primary);
    padding-left: 0.75rem;
}

.topic-section p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.feature-list {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--text-primary);
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background-color: var(--highlight-bg);
    border-left: 5px solid var(--highlight-border);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
}

.quote-box {
    background-color: var(--quote-bg);
    border-left: 5px solid var(--quote-border);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 0 8px 8px 0;
}

.question-box {
    background: linear-gradient(135deg, rgba(0,86,179,0.08) 0%, rgba(0,168,255,0.08) 100%);
    border: 2px dashed var(--brand-primary);
    padding: 1.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0;
    text-align: center;
}

.final-note {
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
}

.comments-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.comment-form {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    cursor: pointer;
}

.star {
    color: var(--star-inactive);
    transition: color 0.2s ease;
}

.star.active {
    color: var(--star-active);
}

.btn-submit-comment {
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit-comment:hover {
    filter: brightness(1.1);
}

.comments-list-container h4 {
    margin-bottom: 1rem;
}

.comment-card {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
}

.comment-stars {
    color: var(--star-active);
    font-size: 0.9rem;
}

.comment-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    animation: floatPulse 3s infinite ease-in-out;
    border: 2px solid var(--brand-accent);
}

.floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes floatPulse {
    0% { transform: translateY(0) scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
    50% { transform: translateY(-8px) scale(1.05); box-shadow: 0 8px 25px rgba(0, 168, 255, 0.6); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
}

.edcell-footer {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

.footer-container p {
    font-size: 0.95rem;
}

.footer-subtext {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .post-title { font-size: 1.75rem; }
    .post-subtitle { font-size: 1rem; }
    .btn-cta { font-size: 1rem; padding: 0.8rem 1.5rem; width: 100%; justify-content: center; }
    .header-container { flex-direction: column; gap: 0.75rem; text-align: center; }
    .floating-btn { width: 50px; height: 50px; bottom: 15px; right: 15px; }
}