/* Ryan Gosling Drive Pixel Art CSS */

.pixel-logo {
    display: inline-block;
    position: relative;
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    margin-right: 10px;
    background-image: url('/static/img/gosling-pixel.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.pixel-logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, transparent 40%, #f4c430 40%, #f4c430 60%, transparent 60%),
        linear-gradient(to right, transparent 35%, #ffd8a8 35%, #ffd8a8 65%, transparent 65%),
        linear-gradient(to right, transparent 35%, #ffd8a8 35%, #ffd8a8 65%, transparent 65%),
        linear-gradient(to right, transparent 30%, #8b4513 30%, #8b4513 35%, #ffd8a8 35%, #ffd8a8 65%, #8b4513 65%, #8b4513 70%, transparent 70%),
        linear-gradient(to right, transparent 35%, #333 35%, #333 45%, #ffd8a8 45%, #ffd8a8 55%, #333 55%, #333 65%, transparent 65%),
        linear-gradient(to right, transparent 35%, #ffd8a8 35%, #ffd8a8 65%, transparent 65%),
        linear-gradient(to right, transparent 40%, #ffd8a8 40%, #ffd8a8 60%, transparent 60%),
        linear-gradient(to right, transparent 35%, #fff 35%, #fff 65%, transparent 65%),
        linear-gradient(to right, transparent 30%, #c41e3a 30%, #c41e3a 70%, transparent 70%);

    background-size: 100% 11.11%;
    background-position:
        0 0%,      /* Hair highlight */
        0 11.11%,  /* Forehead */
        0 22.22%,  /* Face upper */
        0 33.33%,  /* Hair sides */
        0 44.44%,  /* Eyes */
        0 55.55%,  /* Nose/Face */
        0 66.66%,  /* Mouth area */
        0 77.77%,  /* Collar */
        0 88.88%;  /* Jacket */
    background-repeat: no-repeat;
}

.city-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #ff1744;
    text-shadow: 2px 2px 0 #000;
    font-size: 1.2em;
    letter-spacing: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* Animated neon effect for "City" text */
@keyframes neon-glow {
    0%, 100% {
        text-shadow:
            0 0 5px #ff1744,
            0 0 10px #ff1744,
            0 0 15px #ff1744,
            0 0 20px #ff1744,
            2px 2px 0 #000;
    }
    50% {
        text-shadow:
            0 0 10px #ff1744,
            0 0 20px #ff1744,
            0 0 30px #ff1744,
            0 0 40px #ff1744,
            2px 2px 0 #000;
    }
}

.city-text:hover {
    animation: neon-glow 2s ease-in-out infinite;
}

/* Alternative ASCII art version for fallback */
.pixel-ascii {
    font-family: monospace;
    font-size: 8px;
    line-height: 1;
    white-space: pre;
    color: #ffd8a8;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Drive-inspired color scheme */
.drive-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e94560;
}

.drive-accent {
    color: #ff1744;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pixel-logo {
        width: 32px;
        height: 32px;
    }

    .city-text {
        font-size: 1em;
    }
}