contohcontohcontohcontohcontoh
-
<![CDATA[
/* -----------------------------------------
Neon Pulse Blogger Template v1.0
Designed by: AI Assistant
License: Free for Personal Use
----------------------------------------- */
/* Reset & Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-dark);
color: var(--text-primary);
line-height: 1.6;
overflow-x: hidden;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-family: 'Orbitron', sans-serif;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 2rem); }
a {
color: var(--neon-cyan);
text-decoration: none;
transition: all 0.3s ease;
}
a:hover {
color: var(--text-primary);
text-shadow: 0 0 10px var(--neon-cyan);
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header Styles */
.site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: rgba(10, 10, 10, 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(0, 255, 255, 0.3);
z-index: 1000;
transition: all 0.3s ease;
}
.site-header.scrolled {
background: rgba(10, 10, 10, 0.95);
box-shadow: 0 4px 30px rgba(0, 255, 255, 0.2);
}
.header-inner {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}
.header-logo h1 {
font-size: 1.8rem;
background: var(--gradient-primary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}
/* Navigation Styles */
.main-navigation ul {
display: flex;
list-style: none;
gap: 1.5rem;
}
.main-navigation a {
color: var(--text-secondary);
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 25px;
transition: all 0.3s ease;
}
.main-navigation a:hover {
background: rgba(0, 255, 255, 0.1);
color: var(--neon-cyan);
box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}
/* Dynamic Font Size for Navigation */
.main-navigation.menu-few a { font-size: 1.1rem; }
.main-navigation.menu-many a { font-size: 1rem; }
.main-navigation.menu-many-many a { font-size: 0.9rem; }
/* Mobile Menu Toggle */
.mobile-menu-toggle {
display: none;
flex-direction: column;
background: none;
border: none;
cursor: pointer;
padding: 5px;
}
.mobile-menu-toggle span {
width: 25px;
height: 3px;
background: var(--neon-cyan);
margin: 3px 0;
transition: 0.3s;
}
/* Search Box */
.search-container {
position: relative;
}
.search-toggle {
background: none;
border: none;
color: var(--neon-cyan);
font-size: 1.2rem;
cursor: pointer;
padding: 0.5rem;
}
.search-expand {
position: absolute;
top: 100%;
right: 0;
width: 0;
overflow: hidden;
transition: width 0.4s ease;
}
.search-container.search-active .search-expand {
width: 250px;
}
.search-expand input {
width: 100%;
padding: 0.8rem;
background: rgba(0, 255, 255, 0.1);
border: 1px solid var(--neon-cyan);
border-radius: 25px;
color: var(--text-primary);
}
/* Hero Section */
.hero-section {
margin-top: 80px;
padding: 3rem 0;
position: relative;
overflow: hidden;
}
.hero-post {
position: relative;
border-radius: 15px;
overflow: hidden;
height: 500px;
background: var(--bg-card);
}
.hero-post-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.hero-post:hover .hero-post-image {
transform: scale(1.05);
}
.hero-content {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 2rem;
background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
}
.hero-category {
display: inline-block;
background: var(--neon-magenta);
color: var(--bg-dark);
padding: 0.3rem 0.8rem;
border-radius: 15px;
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 1rem;
}
.hero-title {
font-size: clamp(1.8rem, 4vw, 2.5rem);
margin-bottom: 1rem;
}
.hero-meta {
display: flex;
gap: 1rem;
color: var(--text-secondary);
font-size: 0.9rem;
}
/* Post Grid */
.post-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
padding: 3rem 0;
}
.post-card {
background: var(--bg-card);
border-radius: 15px;
overflow: hidden;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.post-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
border-color: var(--neon-cyan);
}
.post-card-image {
width: 100%;
height: 200px;
object-fit: cover;
}
.post-card-content {
padding: 1.5rem;
}
.post-card-category {
color: var(--neon-green);
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
}
.post-card-title {
font-size: 1.2rem;
margin: 0.5rem 0;
line-height: 1.3;
}
.post-card-meta {
color: var(--text-secondary);
font-size: 0.8rem;
}
/* Sidebar */
.sidebar {
padding: 3rem 0;
}
.widget {
background: var(--bg-card);
border-radius: 15px;
padding: 1.5rem;
margin-bottom: 2rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.widget-title {
font-size: 1.2rem;
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--neon-cyan);
position: relative;
}
.widget-title::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 50px;
height: 2px;
background: var(--gradient-primary);
}
/* Popular Posts Widget */
.popular-posts li {
display: flex;
gap: 1rem;
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.popular-posts li:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.popular-posts-image {
width: 80px;
height: 80px;
object-fit: cover;
border-radius: 10px;
}
.popular-posts-content {
flex: 1;
}
.popular-posts-title {
font-size: 0.9rem;
margin-bottom: 0.5rem;
line-height: 1.3;
}
/* Labels Widget */
.label-cloud li {
display: inline-block;
margin: 0.3rem;
}
.label-cloud a {
display: block;
padding: 0.5rem 1rem;
background: rgba(0, 255, 255, 0.1);
border: 1px solid var(--neon-cyan);
border-radius: 20px;
font-size: 0.8rem;
transition: all 0.3s ease;
}
.label-cloud a:hover {
background: var(--neon-cyan);
color: var(--bg-dark);
box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}
/* Footer Styles */
.site-footer {
background: var(--bg-card);
border-top: 2px solid var(--neon-cyan);
padding: 3rem 0 1rem;
margin-top: 4rem;
}
.footer-inner {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-column h3 {
color: var(--neon-cyan);
margin-bottom: 1rem;
font-size: 1.2rem;
}
.footer-column ul {
list-style: none;
}
.footer-column ul li {
margin-bottom: 0.5rem;
}
.footer-column ul li a {
color: var(--text-secondary);
transition: all 0.3s ease;
}
.footer-column ul li a:hover {
color: var(--neon-cyan);
padding-left: 5px;
}
.footer-social {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.footer-social a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(0, 255, 255, 0.1);
border: 1px solid var(--neon-cyan);
color: var(--neon-cyan);
border-radius: 50%;
transition: all 0.3s ease;
}
.footer-social a:hover {
background: var(--neon-cyan);
color: var(--bg-dark);
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}
/* Newsletter Form */
.footer-subscribe input[type="email"] {
width: 100%;
padding: 0.8rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 5px;
color: var(--text-primary);
margin-bottom: 1rem;
}
.footer-subscribe button {
width: 100%;
padding: 0.8rem;
background: var(--gradient-primary);
border: none;
border-radius: 5px;
color: var(--bg-dark);
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.footer-subscribe button:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}
/* Footer Bottom */
.footer-bottom {
text-align: center;
padding: 1.5rem 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
color: var(--text-secondary);
}
/* Back to Top Button */
#back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
background: var(--neon-magenta);
border: none;
border-radius: 50%;
color: var(--bg-dark);
font-size: 1.2rem;
cursor: pointer;
opacity: 0;
visibility: hidden;
transition: all 0.4s ease;
z-index: 999;
box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}
#back-to-top.show {
opacity: 1;
visibility: visible;
}
#back-to-top:hover {
background: var(--neon-cyan);
transform: translateY(-5px);
box-shadow: 0 5px 25px rgba(0, 255, 255, 0.7);
}
/* Single Post Styles */
.post-body {
font-size: 1.1rem;
line-height: 1.8;
}
.post-body h2, .post-body h3 {
margin-top: 2rem;
margin-bottom: 1rem;
}
.post-body img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin: 1.5rem 0;
}
.post-body blockquote {
margin: 1.5rem 0;
padding: 1rem 1.5rem;
background: rgba(0, 255, 255, 0.1);
border-left: 4px solid var(--neon-cyan);
border-radius: 0 10px 10px 0;
font-style: italic;
}
.post-body ul, .post-body ol {
margin: 1.5rem 0;
padding-left: 2rem;
}
.post-body li {
margin-bottom: 0.5rem;
}
/* Author Box */
.author-box {
display: flex;
gap: 1.5rem;
background: var(--bg-card);
padding: 2rem;
border-radius: 15px;
margin-top: 3rem;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.author-image {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
}
.author-content h4 {
margin-bottom: 0.5rem;
}
.author-content p {
color: var(--text-secondary);
margin-bottom: 1rem;
}
.author-social a {
color: var(--text-secondary);
margin-right: 1rem;
font-size: 1.2rem;
transition: all 0.3s ease;
}
.author-social a:hover {
color: var(--neon-cyan);
}
/* Related Posts */
.related-posts {
margin-top: 3rem;
}
.related-posts h3 {
margin-bottom: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--neon-magenta);
}
.related-posts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
.header-inner {
padding: 1rem 1rem;
}
.main-navigation, .search-container {
display: none;
}
.mobile-menu-toggle {
display: flex;
}
.hero-post {
height: 350px;
}
.post-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.author-box {
flex-direction: column;
text-align: center;
}
.footer-inner {
grid-template-columns: 1fr;
text-align: center;
}
.footer-social {
justify-content: center;
}
}
/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.fade-in {
animation: fadeIn 0.6s ease-out;
}
]]>
true
true
true