/* Old-school ALife aesthetic with retro colors */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Balanced Metallic Blue - Dark with bright accents */
    --hokusai-blue: #6A9BC0;        /* Bright metallic blue - primary */
    --hokusai-blue-light: #8AB4D4;  /* Lighter metallic blue */
    --hokusai-blue-dark: #4A7A9C;   /* Mid metallic blue */
    --hokusai-indigo: #7AAAC8;      /* Metallic indigo-blue */
    --hokusai-sky: #E8EDF2;         /* Cool light gray-blue sky */
    --hokusai-foam: #F5F7FA;        /* Cool off-white */
    
    --bg-color: #1A2530;            /* Dark blue-gray background */
    --card-bg: #243240;             /* Card background */
    --card-hover: #2E4050;          /* Hover state */
    --text-primary: #E8ECF0;        /* Cool off-white text */
    --text-secondary: #A0B0C0;      /* Muted steel gray text */
    --accent-green: #5A9070;        /* Subtle teal-green accent */
    --accent-cyan: #8AB4D4;         /* Bright metallic cyan accent */
    --accent-purple: #8A9CB8;       /* Steel purple accent */
    --border-color: #3A4A5A;        /* Metallic border */
}

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(106, 155, 192, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 180, 212, 0.10) 0%, transparent 50%);
}

/* Override Bootstrap container max-width */
.container-fluid .container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header styles removed - now using sidebar */

/* Blog grid now uses Bootstrap's row/col system */
/* Removed .blog-grid styles as Bootstrap handles the grid */

.blog-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    /* Make cards square using aspect-ratio */
    aspect-ratio: 1 / 1;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(138, 180, 212, 0.18),
        transparent
    );
    transition: left 0.5s ease;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card:hover {
    border-color: var(--hokusai-blue-light);
    background-color: var(--card-hover);
    transform: translateY(-5px);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(138, 180, 212, 0.25);
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 1.8rem;
    color: var(--text-primary); /* White */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.blog-card:hover .card-title {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(138, 180, 212, 0.5);
}

.card-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: auto;
    line-height: 1.6;
    flex: 1;
}

.card-date {
    font-size: 0.9rem;
    color: #8AB4D4;
    opacity: 0.7;
    margin-top: auto;
    padding-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Subtle animation for cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive design - Bootstrap handles most of this, but we add custom tweaks */
@media (max-width: 576px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .blog-card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

/* Old-school terminal cursor effect */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Optional: Add a subtle scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 1000;
}

