/* tanso.day — dopamine neon burst */

@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 135deg;
    inherits: false;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F0FFF0;
    color: #1A1A1A;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Section Heading ---- */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 2rem;
}

/* ---- Hero Zone ---- */
.hero {
    background: linear-gradient(135deg, #00E676, #00BCD4, #00E676);
    background-size: 200% 200%;
    animation: gradientShift 6s ease-in-out infinite;
    padding: 5rem 2rem;
    text-align: center;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5rem);
    color: #FFFFFF;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 1rem;
}

.hero-fact {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.day-counter {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    justify-content: center;
}

.counter-num {
    font-family: 'Fira Mono', monospace;
    font-weight: 500;
    font-size: 1.5rem;
    color: #FFFFFF;
    font-variant-numeric: tabular-nums;
    animation: counterTick 1s ease-out;
}

@keyframes counterTick {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.counter-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ---- Daily Content Cards ---- */
.daily-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.daily-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.daily-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.5rem;
    will-change: transform;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    position: relative;
}

.daily-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-animate {
    transform: rotate(-1deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.card-animate.card-visible {
    transform: rotate(0deg);
}

.border-lime {
    border-left: 5px solid #00E676;
}

.border-cyan {
    border-left: 5px solid #00BCD4;
}

.border-orange {
    border-left: 5px solid #FF6D00;
}

.card-category {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1A1A1A;
    display: block;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: #1A1A1A;
}

/* ---- Share Buttons ---- */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    border: 2px solid #00E676;
    border-radius: 20px;
    background: transparent;
    color: #00E676;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
    background: #00E676;
    color: #FFFFFF;
}

.share-btn:active {
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.9); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.share-icon {
    width: 16px;
    height: 16px;
}

/* ---- Carbon Clock ---- */
.carbon-clock {
    margin-bottom: 0.5rem;
}

.clock-num {
    font-family: 'Fira Mono', monospace;
    font-weight: 500;
    font-size: 2.5rem;
    color: #FF6D00;
    font-variant-numeric: tabular-nums;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00E676;
    animation: pulse 1.5s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 0.3rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

.live-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00E676;
    vertical-align: middle;
}

/* ---- Streak Section ---- */
.streak {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.streak-counter {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.streak-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: #FF6D00;
}

.streak-flame {
    font-size: 2rem;
    display: inline-block;
    animation: flameFlicker 0.8s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    0% { transform: scale(1) rotate(-3deg); }
    100% { transform: scale(1.15) rotate(3deg); }
}

.streak-label {
    font-size: 1rem;
    color: #1A1A1A;
}

/* ---- Milestone / Confetti ---- */
.milestone-btn {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #FF6D00, #00E676);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.milestone-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 109, 0, 0.4);
}

.milestone-btn:active {
    animation: bounce 0.4s ease;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFall 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: translateY(200px) rotate(720deg) scale(0.3); }
}

/* ---- Calendar Heat Map ---- */
.calendar-heatmap {
    display: grid;
    grid-template-columns: repeat(7, 24px);
    gap: 4px;
    justify-content: center;
}

.cal-cell {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: #E0E0E0;
    transition: transform 0.2s ease;
}

.cal-cell:hover {
    transform: scale(1.2);
}

.c1  { background: rgba(0, 230, 118, 0.1); }
.c2  { background: rgba(0, 230, 118, 0.2); }
.c4  { background: rgba(0, 230, 118, 0.4); }
.c6  { background: rgba(0, 230, 118, 0.6); }
.c8  { background: rgba(0, 230, 118, 0.8); }
.c10 { background: rgba(0, 230, 118, 1); }

/* ---- Footer ---- */
.footer {
    background: #0A0A0A;
    padding: 2rem;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.flink {
    font-size: 0.85rem;
    color: #00E676;
    text-decoration: none;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #00BCD4;
}

.footer-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.25rem 0.7rem;
    border: 1px solid #E0E0E0;
    border-radius: 14px;
    background: transparent;
    color: #E0E0E0;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00E676;
    color: #0A0A0A;
    border-color: #00E676;
}

.tomorrow-timer {
    font-family: 'Fira Mono', monospace;
    font-size: 0.85rem;
    color: #E0E0E0;
}

#countdown {
    color: #FF6D00;
}

.footer-copy {
    font-size: 0.7rem;
    color: #E0E0E0;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .daily-cards {
        grid-template-columns: 1fr;
    }
    .footer-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    .footer-filters {
        justify-content: center;
    }
}

/* ---- Fade-In (IntersectionObserver) ---- */
.fade-in {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
