/*
Theme Name: DreamDynamix
Description: Cutting-edge sci-fi fusion theme for Dream Dynamix
Version: 1.0
Author: Bold Icon
*/

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #ffff00;
    --accent-secondary: #ff4400;
    --accent-blue: #0099ff;
    --border-glow: rgba(255, 255, 0, 0.3);
    --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(255, 255, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-tech: 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background grid - 2001 Odyssey style */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Header - Star Trek command bridge aesthetic */
.site-header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: translateX(-50%);
}

/* Logo and branding */
.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 8px var(--accent-primary);
    margin: 0;
    line-height: 1;
}

.site-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

.nav-menu a:hover::before {
    width: 100%;
}

/* Main content area */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Clickable post cards - FIXED */
.post-card {
    background: var(--gradient-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.post-card:visited,
.post-card:hover,
.post-card:focus,
.post-card:active {
    color: inherit !important;
    text-decoration: none !important;
}

.post-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-blue));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-card:hover::before {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-deep), var(--shadow-glow);
}

/* Album cover display - SQUARE like real albums */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio (square) */
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    filter: brightness(0.8) contrast(1.1);
}

.no-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
    border: 2px dashed rgba(255,255,255,0.2);
    border-radius: 8px;
    width: 80%;
}

.post-card:hover .no-image-placeholder {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2);
}

/* Sci-fi overlay on album covers */
.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,0,0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.post-card:hover .post-thumbnail::after {
    left: 100%;
}

.card-inner {
    padding: 2rem;
    position: relative;
}

/* Matrix-style data readout */
.card-inner::before {
    content: '> ACCESSING DATA...';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-tech);
    font-size: 0.7rem;
    color: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.post-card:hover .card-inner::before {
    opacity: 1;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.post-card .post-title {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-card:hover .post-title {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.post-meta {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

/* Footer - HAL 9000 minimalism */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--accent-primary);
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-family: var(--font-tech);
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-posts h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.no-posts p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.no-posts strong {
    color: var(--accent-primary);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .site-main {
        padding: 2rem 1rem;
    }
}

/* Performance optimizations */
.post-card {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before {
        animation: none;
    }
}

.post-card:focus,
.nav-menu a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}
/* Page and Single Post Styles */
.page-content,
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.page-featured-image,
.single-featured-image {
    margin-bottom: 2rem;
    text-align: center;
}

.page-featured-image img,
.single-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-deep);
}

.page-header,
.single-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.page-title,
.single-title {
    font-size: 3rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-primary);
    margin-bottom: 1rem;
}

.single-meta {
    font-family: var(--font-tech);
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-body,
.single-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.page-body p,
.single-content p {
    margin-bottom: 1.5rem;
}

.single-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    text-align: center;
}

.page-links a {
    color: var(--accent-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation a {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
}

.post-navigation a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
/* Footer Bold Icon Link with Logo */
.powered-by a.bold-icon-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.powered-by a.bold-icon-link:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 5px var(--accent-primary);
}

.logo-svg {
    height: .8em;
    width: auto;
    vertical-align: middle;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.powered-by a.bold-icon-link:hover .logo-svg {
    filter: brightness(1.2) drop-shadow(0 0 3px var(--accent-primary));
}
.custom-logo {
    max-height: 80px;
    max-width: 80px; /* Add this line */
    width: auto;
    display: block;
    animation: logoFlicker 4s infinite;
}
.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
    animation: logoFlicker 4s infinite;
}

@keyframes logoFlicker {
    0%, 95%, 100% { 
        opacity: 1; 
        filter: brightness(1);
    }
    96%, 97% { 
        opacity: 0.8; 
        filter: brightness(1.2);
    }
}
.post-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}