:root {
    --brutalist-bg: #f5f5f5;
    --brutalist-text: #2c2c2c;
    --brutalist-accent: #d32f2f;
    --brutalist-shadow: #e0e0e0;
    --brutalist-border: #424242;
    --brutalist-meta: #757575;
    --brutalist-grid: rgba(66, 66, 66, 0.1);
}

body {
    background-color: var(--brutalist-bg);
    color: var(--brutalist-text);
    font-family: 'Source Code Pro', monospace;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
    background: 
        linear-gradient(45deg, #f5f5f5, #e0e0e0),
        linear-gradient(var(--brutalist-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--brutalist-grid) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 62, 62, 0.1), transparent 70%);
    pointer-events: none;
}

.typewriter {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--brutalist-accent);
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.5),
                 0 0 20px rgba(255, 62, 62, 0.3);
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 2rem;
    border-radius: 4px;
}

.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--brutalist-accent);
    box-shadow: 0 0 10px var(--brutalist-accent);
}

.story-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 62, 62, 0.1);
    margin-bottom: 2rem;
    width: 600px;
    height: 150px;
    border: 1px solid rgba(255, 62, 62, 0.1);
    position: relative;
}

.story-text {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8;
    white-space: normal;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.noir-btn {
    background: var(--brutalist-accent);
    color: var(--brutalist-bg);
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--neon-glow);
    border-radius: 4px;
}

.noir-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--brutalist-accent),
                0 0 40px var(--brutalist-accent);
    text-shadow: 0 0 5px #fff;
}

.noir-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px var(--brutalist-accent);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.typing {
    overflow: hidden;
    border-right: 2px solid var(--brutalist-accent);
    white-space: nowrap;
    animation: 
        typewriter 2s steps(40, end),
        blink 0.75s step-end infinite;
    text-shadow: var(--neon-text-glow);
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

/* Add a subtle scanline effect */
.typewriter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(255, 62, 62, 0.05) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Three Column Layout */
.three-column-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
}

.three-column-container::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--brutalist-border);
    transform: scaleX(0);
    transform-origin: left;
    animation: lineReveal 1s ease-out forwards;
}

@keyframes lineReveal {
    to { transform: scaleX(1); }
}

.card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--brutalist-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 4px 0 var(--brutalist-border);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brutalist-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--brutalist-border);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid var(--brutalist-border);
    filter: grayscale(100%) contrast(120%);
    transition: filter 0.3s ease;
}

.card:hover .card-image {
    filter: grayscale(0%) contrast(110%);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

.card-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--brutalist-border);
    border-right: 2px solid var(--brutalist-border);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-content::after {
    opacity: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brutalist-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 2px solid var(--brutalist-border);
    padding-bottom: 0.5rem;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--brutalist-accent);
    transition: width 0.3s ease;
}

.card:hover .card-title::after {
    width: 100%;
}

.card-description {
    color: var(--brutalist-text);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--brutalist-bg);
    color: var(--brutalist-text);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--brutalist-border);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
}

.tag:hover {
    background: var(--brutalist-accent);
    color: white;
    transform: translateY(-2px);
}

.card-meta {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--brutalist-meta);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--brutalist-border);
    padding-top: 0.5rem;
    position: relative;
}

.card-meta::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--brutalist-accent);
    transition: width 0.3s ease;
}

.card:hover .card-meta::before {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .three-column-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .three-column-container {
        grid-template-columns: 1fr;
    }
} 
