:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #a5b4fc;
--secondary: #ec4899;
--secondary-dark: #db2777;
--accent: #f59e0b;
--success: #10b981;
--danger: #ef4444;
--bg-body: #f8fafc;
--bg-card: #ffffff;
--bg-header: rgba(255, 255, 255, 0.98);
--bg-footer: #0f172a;
--bg-sidebar: #ffffff;
--text-primary: #1e1b4b;
--text-secondary: #64748b;
--text-muted: #94a3b8;
--text-light: #ffffff;
--border: #e2e8f0;
--border-light: #f1f5f9;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-2xl: 1.5rem;
--transition: all 0.3s ease;
}
body.dark-mode {
--bg-body: #0f172a;
--bg-card: #1e293b;
--bg-header: rgba(15, 23, 42, 0.98);
--bg-footer: #020617;
--bg-sidebar: #1e293b;
--text-primary: #f1f5f9;
--text-secondary: #cbd5e1;
--text-muted: #94a3b8;
--border: #334155;
--border-light: #1e293b;
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
} * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg-body);
color: var(--text-primary);
line-height: 1.6;
transition: var(--transition);
overflow-x: hidden;
}
a {
color: var(--primary);
text-decoration: none;
transition: var(--transition);
}
a:hover {
color: var(--secondary);
}
img {
max-width: 100%;
height: auto;
} .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
.site-main {
min-height: 500px;
padding: 40px 0;
} .site-header {
background: var(--bg-header);
backdrop-filter: blur(10px);
box-shadow: var(--shadow-md);
position: sticky;
top: 0;
z-index: 1000;
transition: var(--transition);
}
.site-header.header-hidden {
transform: translateY(-100%);
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
height: 70px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 30px;
}
.site-branding {
flex-shrink: 0;
}
.custom-logo {
height: 45px;
width: auto;
}
.site-title {
font-size: 24px;
font-weight: 800;
margin: 0;
}
.site-title a {
text-decoration: none;
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.desktop-nav {
flex: 1;
}
.nav-menu {
display: flex;
list-style: none;
gap: 32px;
margin: 0;
padding: 0;
}
.nav-menu a {
text-decoration: none;
color: var(--text-primary);
font-weight: 500;
font-size: 15px;
transition: var(--transition);
}
.nav-menu a:hover {
color: var(--primary);
}
.header-actions {
display: flex;
align-items: center;
gap: 12px;
}
.header-search-toggle,
.theme-toggle,
.mobile-menu-toggle {
background: transparent;
border: none;
cursor: pointer;
padding: 8px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
color: var(--text-primary);
}
.header-search-toggle:hover,
.theme-toggle:hover,
.mobile-menu-toggle:hover {
background: rgba(99, 102, 241, 0.1);
transform: scale(1.05);
} .mobile-nav-panel {
position: fixed;
top: 0;
right: -100%;
width: 85%;
max-width: 320px;
height: 100%;
background: var(--bg-card);
z-index: 10000;
transition: right 0.3s ease-in-out;
box-shadow: var(--shadow-xl);
overflow-y: auto;
}
.mobile-nav-panel.active {
right: 0;
}
.mobile-nav-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: 1px solid var(--border);
}
.mobile-nav-title {
font-size: 20px;
font-weight: 800;
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.mobile-nav-close {
background: none;
border: none;
font-size: 28px;
cursor: pointer;
color: var(--text-primary);
}
.mobile-nav-content {
padding: 20px;
}
.mobile-menu {
list-style: none;
}
.mobile-menu li {
margin-bottom: 15px;
}
.mobile-menu a {
text-decoration: none;
color: var(--text-primary);
font-size: 16px;
display: block;
padding: 8px 0;
}
.mobile-menu a:hover {
color: var(--primary);
padding-left: 10px;
}
.mobile-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9999;
display: none;
}
.mobile-overlay.active {
display: block;
} .search-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
z-index: 11000;
display: none;
align-items: center;
justify-content: center;
}
.search-modal.active {
display: flex;
}
.search-modal-content {
width: 90%;
max-width: 600px;
background: var(--bg-card);
border-radius: var(--radius-2xl);
padding: 30px;
position: relative;
animation: fadeInScale 0.3s ease;
}
.search-modal-close {
position: absolute;
top: 15px;
right: 20px;
background: none;
border: none;
font-size: 28px;
cursor: pointer;
color: var(--text-primary);
}
.search-form {
display: flex;
gap: 12px;
margin-bottom: 20px;
}
.search-field {
flex: 1;
padding: 14px 20px;
border: 2px solid var(--border);
border-radius: 50px;
background: var(--bg-body);
color: var(--text-primary);
font-size: 16px;
}
.search-field:focus {
outline: none;
border-color: var(--primary);
}
.search-submit {
padding: 14px 28px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: none;
border-radius: 50px;
color: white;
font-weight: 600;
cursor: pointer;
}
.search-results {
margin-top: 20px;
max-height: 400px;
overflow-y: auto;
}
.search-result-item {
padding: 12px;
border-bottom: 1px solid var(--border);
}
.search-result-item a {
display: flex;
gap: 15px;
text-decoration: none;
}
.search-result-img {
width: 50px;
height: 50px;
border-radius: var(--radius-md);
overflow: hidden;
}
.search-result-img img {
width: 100%;
height: 100%;
object-fit: cover;
}
.search-result-info h4 {
color: var(--text-primary);
font-size: 14px;
margin-bottom: 4px;
}
.search-result-info span {
font-size: 11px;
color: var(--text-secondary);
} .site-footer {
background: var(--bg-footer);
color: var(--text-light);
margin-top: 80px;
padding: 60px 0 20px;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
.footer-widgets {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
margin-bottom: 50px;
padding-bottom: 40px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-widget-title {
color: #ffffff;
font-size: 18px;
font-weight: 600;
margin-bottom: 20px;
position: relative;
padding-bottom: 12px;
}
.footer-widget-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.footer-widget p {
color: #cbd5e1;
font-size: 14px;
line-height: 1.6;
margin-bottom: 15px;
}
.footer-widget ul {
list-style: none;
}
.footer-widget li {
margin-bottom: 10px;
}
.footer-widget a {
color: #cbd5e1;
text-decoration: none;
font-size: 14px;
transition: var(--transition);
}
.footer-widget a:hover {
color: var(--primary);
padding-left: 5px;
}
.footer-newsletter {
text-align: center;
padding: 40px 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 30px;
}
.footer-newsletter h3 {
font-size: 24px;
margin-bottom: 10px;
}
.footer-newsletter p {
color: #cbd5e1;
margin-bottom: 20px;
}
.newsletter-form {
display: flex;
max-width: 500px;
margin: 0 auto;
gap: 10px;
}
.newsletter-form input {
flex: 1;
padding: 14px 20px;
border: none;
border-radius: 50px;
background: rgba(255, 255, 255, 0.1);
color: white;
font-size: 14px;
}
.newsletter-form input::placeholder {
color: rgba(255, 255, 255, 0.5);
}
.newsletter-form button {
padding: 14px 30px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
border: none;
border-radius: 50px;
color: white;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}
.newsletter-form button:hover {
transform: translateY(-2px);
}
.social-links {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
}
.social-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
transition: var(--transition);
font-size: 14px;
font-weight: 600;
}
.social-link:hover {
transform: translateY(-3px);
background: var(--primary);
}
.footer-copyright {
text-align: center;
padding-top: 20px;
font-size: 13px;
color: #94a3b8;
} .hero-section {
background: linear-gradient(135deg, var(--primary), var(--secondary));
border-radius: var(--radius-2xl);
padding: 60px 40px;
text-align: center;
margin: 40px 0;
color: white;
}
.hero-section h1 {
font-size: 48px;
margin-bottom: 16px;
}
.hero-section p {
font-size: 20px;
opacity: 0.95;
}
.trending-section,
.latest-section {
margin: 60px 0;
}
.section-header {
text-align: center;
margin-bottom: 40px;
}
.trending-badge,
.latest-badge {
display: inline-block;
padding: 6px 20px;
border-radius: 50px;
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.trending-badge {
background: linear-gradient(135deg, #ef4444, #f97316);
color: white;
}
.latest-badge {
background: linear-gradient(135deg, #10b981, #06b6d4);
color: white;
}
.section-title {
font-size: 36px;
font-weight: 800;
color: var(--text-primary);
margin-bottom: 12px;
}
.section-underline {
width: 80px;
height: 4px;
background: linear-gradient(90deg, var(--primary), var(--secondary));
margin: 0 auto;
border-radius: 4px;
}
.posts-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
}
.post-card {
background: var(--bg-card);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-md);
transition: var(--transition);
display: flex;
gap: 15px;
padding: 16px;
position: relative;
}
.post-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}
.post-number {
position: absolute;
top: 10px;
left: 10px;
width: 35px;
height: 35px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 14px;
z-index: 2;
}
.post-image {
flex-shrink: 0;
width: 100px;
height: 100px;
border-radius: var(--radius-md);
overflow: hidden;
}
.post-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.post-content {
flex: 1;
}
.post-topic {
margin-bottom: 8px;
}
.post-topic a {
display: inline-block;
padding: 3px 10px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
font-size: 10px;
font-weight: 600;
border-radius: 20px;
text-decoration: none;
}
.post-title {
font-size: 16px;
font-weight: 700;
margin-bottom: 8px;
line-height: 1.4;
}
.post-title a {
text-decoration: none;
color: var(--text-primary);
}
.post-title a:hover {
color: var(--primary);
}
.post-excerpt {
font-size: 13px;
color: var(--text-secondary);
margin-bottom: 8px;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.post-date {
font-size: 11px;
color: var(--text-muted);
}
.view-all-wrapper {
text-align: center;
margin-top: 40px;
}
.view-all-btn {
display: inline-block;
padding: 12px 30px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: var(--transition);
}
.view-all-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
} .single-post-wrapper {
padding: 40px 0;
}
.single-post-article {
background: var(--bg-card);
border-radius: var(--radius-2xl);
padding: 40px;
box-shadow: var(--shadow-md);
margin-bottom: 40px;
}
.entry-header {
margin-bottom: 30px;
text-align: center;
}
.entry-title {
font-size: 42px;
line-height: 1.2;
margin-bottom: 20px;
color: var(--text-primary);
}
.entry-meta {
display: flex;
justify-content: center;
gap: 25px;
flex-wrap: wrap;
padding: 15px 0;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
color: var(--text-secondary);
font-size: 14px;
}
.post-thumbnail {
margin: 30px 0;
border-radius: var(--radius-xl);
overflow: hidden;
}
.post-thumbnail img {
width: 100%;
height: auto;
display: block;
}
.entry-content {
font-size: 18px;
line-height: 1.8;
color: var(--text-primary);
}
.entry-content p {
margin-bottom: 1.5em;
}
.entry-content h2 {
font-size: 28px;
margin: 1.5em 0 0.5em;
}
.entry-content h3 {
font-size: 24px;
margin: 1.5em 0 0.5em;
}
.entry-content a {
color: var(--primary);
text-decoration: underline;
}
.entry-content a:hover {
color: var(--secondary);
}
.entry-content blockquote {
border-left: 4px solid var(--primary);
padding: 20px 30px;
margin: 30px 0;
background: var(--bg-body);
border-radius: var(--radius-lg);
font-style: italic;
}
.entry-footer {
margin-top: 40px;
padding-top: 30px;
border-top: 1px solid var(--border);
}
.post-tags {
margin-bottom: 20px;
}
.post-tags a {
display: inline-block;
background: var(--bg-body);
padding: 5px 12px;
border-radius: 20px;
font-size: 12px;
margin-right: 8px;
margin-bottom: 8px;
text-decoration: none;
color: var(--text-secondary);
}
.post-tags a:hover {
background: var(--primary);
color: white;
}
.post-share {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
margin-top: 20px;
}
.post-share span {
font-weight: 600;
}
.post-share a {
display: inline-block;
padding: 6px 15px;
background: var(--bg-body);
border-radius: 20px;
font-size: 13px;
text-decoration: none;
}
.post-share a:hover {
background: var(--primary);
color: white;
} .author-bio {
display: flex;
gap: 25px;
background: var(--bg-body);
padding: 30px;
border-radius: var(--radius-xl);
margin: 40px 0;
}
.author-avatar {
flex-shrink: 0;
}
.author-avatar img {
border-radius: 50%;
width: 80px;
height: 80px;
object-fit: cover;
}
.author-info h3 {
font-size: 18px;
margin-bottom: 8px;
}
.author-info p {
color: var(--text-secondary);
font-size: 14px;
margin-bottom: 10px;
}
.author-info a {
font-size: 13px;
font-weight: 500;
} .comments-area {
margin-top: 50px;
}
.comments-title {
font-size: 24px;
margin-bottom: 30px;
padding-bottom: 15px;
border-bottom: 2px solid var(--border);
}
.comment-list {
list-style: none;
margin-bottom: 40px;
}
.comment {
background: var(--bg-card);
border-radius: var(--radius-lg);
padding: 20px;
margin-bottom: 20px;
box-shadow: var(--shadow-sm);
}
.comment-meta {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
}
.comment-author .avatar {
border-radius: 50%;
width: 40px;
height: 40px;
}
.comment-author .fn {
font-weight: 700;
margin-left: 10px;
}
.comment-metadata a {
color: var(--text-secondary);
font-size: 12px;
}
.comment-respond {
margin-top: 40px;
padding: 30px;
background: var(--bg-body);
border-radius: var(--radius-xl);
}
.comment-reply-title {
font-size: 20px;
margin-bottom: 20px;
}
.comment-form input,
.comment-form textarea {
width: 100%;
padding: 12px 15px;
border: 2px solid var(--border);
border-radius: var(--radius-md);
background: var(--bg-card);
color: var(--text-primary);
}
.comment-form input:focus,
.comment-form textarea:focus {
outline: none;
border-color: var(--primary);
}
.form-submit .submit {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border: none;
padding: 12px 28px;
border-radius: 50px;
font-weight: 600;
cursor: pointer;
} .back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 45px;
height: 45px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border: none;
border-radius: 50%;
font-size: 24px;
cursor: pointer;
display: none;
z-index: 999;
transition: var(--transition);
box-shadow: var(--shadow-md);
}
.back-to-top:hover {
transform: translateY(-3px);
} @media (max-width: 768px) {
.container {
padding: 0 20px;
}
.desktop-nav {
display: none;
}
.header-container {
height: 60px;
padding: 0 20px;
}
.site-title {
font-size: 18px;
}
.posts-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.post-card {
flex-direction: column;
padding: 12px;
}
.post-image {
width: 100%;
height: 180px;
}
.hero-section {
padding: 40px 20px;
}
.hero-section h1 {
font-size: 32px;
}
.hero-section p {
font-size: 16px;
}
.section-title {
font-size: 28px;
}
.entry-title {
font-size: 28px;
}
.single-post-article {
padding: 20px;
}
.entry-meta {
flex-direction: column;
align-items: center;
gap: 10px;
}
.author-bio {
flex-direction: column;
text-align: center;
}
.footer-widgets {
grid-template-columns: 1fr;
text-align: center;
}
.footer-widget-title::after {
left: 50%;
transform: translateX(-50%);
}
.newsletter-form {
flex-direction: column;
padding: 0 20px;
}
.post-share {
justify-content: center;
}
.back-to-top {
bottom: 20px;
right: 20px;
width: 40px;
height: 40px;
font-size: 20px;
}
}
@media (max-width: 480px) {
.entry-title {
font-size: 24px;
}
.search-modal-content {
padding: 20px;
}
.search-form {
flex-direction: column;
}
} @keyframes fadeInScale {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
background: var(--primary);
border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--secondary);
}
::selection {
background: var(--primary);
color: white;
}  .search-loading {
text-align: center;
padding: 40px;
color: var(--text-secondary);
}
.loading-spinner {
display: inline-block;
width: 30px;
height: 30px;
border: 3px solid var(--border);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.6s linear infinite;
margin-right: 10px;
vertical-align: middle;
}
@keyframes spin {
to { transform: rotate(360deg); }
} .search-error {
text-align: center;
padding: 40px;
color: var(--danger);
background: rgba(239, 68, 68, 0.1);
border-radius: var(--radius-md);
} .search-min-characters {
text-align: center;
padding: 40px;
color: var(--text-muted);
font-size: 14px;
} .search-no-results {
text-align: center;
padding: 40px;
color: var(--text-secondary);
} .copy-notification {
position: fixed;
bottom: 100px;
right: 30px;
background: var(--success);
color: white;
padding: 12px 24px;
border-radius: 50px;
font-size: 14px;
font-weight: 500;
z-index: 10000;
animation: slideInRight 0.3s ease;
box-shadow: var(--shadow-lg);
}
@keyframes slideInRight {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
} .reading-progress-container {
position: fixed;
top: 70px;
left: 0;
width: 100%;
height: 3px;
background: rgba(0, 0, 0, 0.1);
z-index: 999;
display: block !important;
}
.reading-progress-bar {
height: 100%;
background: linear-gradient(90deg, var(--primary), var(--secondary));
width: 0%;
transition: width 0.3s ease;
} .back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 45px;
height: 45px;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: white;
border: none;
border-radius: 50%;
font-size: 24px;
cursor: pointer;
display: none;
z-index: 999;
transition: all 0.3s ease;
box-shadow: var(--shadow-md);
}
.back-to-top.show {
display: block !important;
}
.back-to-top:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-lg);
} .current-menu-item a {
color: var(--primary) !important;
position: relative;
}
.current-menu-item a::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, var(--primary), var(--secondary));
} .mobile-menu .current-menu-item a {
color: var(--primary) !important;
padding-left: 10px;
} img.loaded {
animation: fadeInScale 0.5s ease;
}
@keyframes fadeInScale {
from {
opacity: 0;
transform: scale(0.98);
}
to {
opacity: 1;
transform: scale(1);
}
} @media (max-width: 768px) {
.reading-progress-container {
top: 60px;
}
.copy-notification {
bottom: 80px;
right: 20px;
left: 20px;
text-align: center;
}
.back-to-top {
bottom: 20px;
right: 20px;
width: 40px;
height: 40px;
font-size: 20px;
}
.current-menu-item a::after {
bottom: -5px;
}
}