/* Tech Theme - Modern & Futuristic */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    line-height: 1.8;
    color: #e0e0e0;
    background: #0a0a0f;
    min-height: 100vh;
    background-image: 
        radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(138, 43, 226, 0.08) 0%, transparent 50%);
}

/* Header */
.header {
    background: rgba(15, 15, 25, 0.95);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Header Time Display */
#header-time {
    color: #ff3333;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
    font-family: 'Courier New', monospace;
    flex: 1;
    text-align: center;
    letter-spacing: 2px;
}

.logo {
    flex: 0 0 auto;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #00d4ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.nav {
    flex: 0 0 auto;
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #a0a0b0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #8a2be2);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Post Card */
.post-card {
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.post-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 212, 255, 0.15);
}

/* Pinned Post */
.post-card.pinned {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.4);
    position: relative;
}

.post-card.pinned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #8a2be2);
    border-radius: 16px 16px 0 0;
}

.post-card.pinned:hover {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 212, 255, 0.25);
}

.pinned-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #00d4ff, #8a2be2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.post-card h2 a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card h2 a:hover {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.post-meta {
    color: #606080;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-meta::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #00d4ff, #8a2be2);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.post-excerpt {
    color: #9090a0;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

/* Full Post */
.full-post {
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.full-post::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.full-post h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.full-post .content {
    color: #c0c0d0;
    line-height: 1.9;
}

.full-post .content h2 {
    color: #00d4ff;
    font-size: 1.3rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.full-post .content p {
    margin-bottom: 1rem;
}

/* Comments */
.comments-section {
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.comments-section h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.comment-form textarea,
.comment-form input[type="text"] {
    width: 100%;
    padding: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.comment-form textarea::placeholder,
.comment-form input[type="text"]::placeholder {
    color: #505070;
}

.comment-form button {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #00d4ff, #8a2be2);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

.comment {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    margin-bottom: 1rem;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.comment-date {
    color: #505070;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: #9090a0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2.5rem 2rem;
    color: #404060;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* Back Link */
.back-link {
    display: inline-block;
    color: #00d4ff;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: translateX(-5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.7rem 1.3rem;
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: #9090a0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    color: #00d4ff;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .post-card,
    .full-post,
    .comments-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .post-card h2 {
        font-size: 1.2rem;
    }
    
    .full-post h1 {
        font-size: 1.5rem;
    }
    
    #header-time {
        font-size: 1rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #8a2be2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00d4ff, #9a4be2);
}
