@import url('https://fonts.googleapis.com/css2?family=Corben:wght@400;700&family=Inconsolata:wght@400;600;700&display=swap');

:root {
    --color-1: #02040f; 
    --color-2: #e67e22;
    --color-3: #4ca1af;
    --color-4: #8e44ad;
    
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-dark: #2d3436;
    --accent: #00d2ff;
    --animation-speed: 20s;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inconsolata', monospace;

    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-white);
    
    /* Gradient Shift Animation */
    animation: skyGradient var(--animation-speed) linear infinite;
    background-size: 100% 400%;
    transition: background 2s ease; 
}

@keyframes skyGradient {
    0%, 100% { background: var(--color-1); }
    25% { background: var(--color-2); }
    50% { background: var(--color-3); }
    75% { background: var(--color-4); }
}

/* --- WRAPPERS and CONTAINERS --- */
.wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 340px;
    margin: 20px;
}

.wrapper.wide {
    width: 90%;
    max-width: 750px;
}

/* --- FONTS & HEADINGS --- */
h1, h2, .city-card h2 { 
    font-family: 'Corben', serif;
    font-size: 2.5rem; 
    margin: 0; 
    font-weight: 700;
    letter-spacing: -0.03em;
}

header p {
    font-size: 1.15rem; 
    opacity: 0.85;
    margin-top: 12px;
    font-weight: 400;
}

/* --- NAV LINKS --- */
.links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 15px;
    
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    
    padding: 14px 22px;
    border-radius: 18px;
    text-decoration: none; 
    
    font-family: 'Corben', serif;
    font-size: 1.05rem;
    font-weight: 400; 
    letter-spacing: -0.01em;
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link-item i {
    font-size: 1.25rem;
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Creates a clean custom underline on hover that skips icons */
.link-item span {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.link-item:hover {
    transform: translateY(-4px);
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    color: var(--accent);
}

.link-item:hover span {
    border-bottom: 2px solid var(--accent);
}

/* --- DAILY & CITIES GRID --- */
.daily-content, .carousel-container {
    margin: 30px 0;
}

.item {
    background: rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.item h3 {
    font-size: 0.9rem; /* Scaled up for monospace clarity */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 700; 
}

/* --- CITIES PAGE ALIGNMENT --- */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px;
    margin: 40px 0;
    width: 100%;
}

.city-card {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
}

.palette-grid {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto; 
    padding: 0;
}

.swatch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; 
}

.swatch {
    width: 70px;
    height: 100px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5); 
    display: block; 
}

.hex-code {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem; /* Scaled up to keep hex numbers readable */
    color: #ffffff; 
    font-weight: 400;
    letter-spacing: 0.5px; 
}

.nav-btn {
    flex-shrink: 0; 
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* --- FOOTER / COPYRIGHT --- */
footer, .copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 25px;
    letter-spacing: 0.5px;
}

/* --- IMAGES & EMBEDS --- */
#daily-painting {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 10px;
}

@media (max-width: 650px) {
    .daily-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .wrapper { padding: 2rem 1.5rem; width: 310px; }
    .wrapper.wide { padding: 1.5rem; }
    .swatch { width: 55px; height: 80px; }
    h1 { font-size: 2rem; }
}

body.about-bg {
    background: #8e44ad !important; 
    animation: none !important; 
}

body.about-bg .wrapper {
    background: #813ea0; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.about-bg a {
    color: #db88ff; 
}

body.projects-bg {
    background: #3589a5 !important; 
    animation: none !important; 
}

body.projects-bg .wrapper {
    background: #2e7993; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.projects-bg a {
    color: #53d4ff; 
}

body.writing-bg {
    background: #96AE8D !important; 
    animation: none !important; 
}

body.writing-bg .wrapper {
    background: #616f5d; 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.writing-bg a {
    color: #d7f8c9; 
}
