/* Proxima Nova Font */
@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/ProximaNova-Regular.woff2') format('woff2'),
         url('fonts/ProximaNova-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/ProximaNova-Semibold.woff2') format('woff2'),
         url('fonts/ProximaNova-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/ProximaNova-Bold.woff2') format('woff2'),
         url('fonts/ProximaNova-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('fonts/ProximaNova-Extrabold.woff2') format('woff2'),
         url('fonts/ProximaNova-Extrabold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Inconsolata Font for Animated Text */
@font-face {
    font-family: 'Inconsolata';
    src: url('https://ggayane.github.io/css-experiments/Inconsolata-VF.ttf');
    font-weight: 275 900;
    font-stretch: 50% 200%;
}

body {
    font-family: 'Inconsolata', monospace;
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* Space for bottom nav */
    background-color: #000000;
    color: #ffffff;
}

/* Hamburger Menu Styles */
.hamburger-menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: #000000;
    border: none;
    border-radius: 0;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease;
}

.hamburger-menu-button:active {
    transform: scale(0.95);
}

.hamburger-icon {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.menu-open {
    opacity: 1;
    visibility: visible;
}

.menu-card {
    background: #000000;
    border-radius: 0;
    padding: 20px 0;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.menu-item {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.menu-item:hover {
    background-color: #333333;
}

.menu-item:active {
    background-color: #1a1a1a;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #000000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #333333;
    box-shadow: 0 -2px 5px rgba(255,255,255,0.05);
}

.bottom-nav button {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    padding: 10px;
    cursor: pointer;
}

.bottom-nav button:active {
    color: #7ED957;
}

.view-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.view-content.home-view,
.view-content.celebrate-view,
.view-content.streak-view {
    max-width: none;
    margin: 0;
    padding: 40px 20px;
}

h1 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    color: #ffffff;
    line-height: 1.5;
}

/* Home View Styles */
.home-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 24px 16px;
    text-align: center;
    background-color: #000000;
    margin: 0;
    box-sizing: border-box;
    overflow: visible;
}

.content-card {
    background: #000000;
    border-radius: 0;
    padding: 32px 24px;
    max-width: 340px;
    width: calc(100% - 28px);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 14px;
    box-sizing: border-box;
    border: 14px solid transparent;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
    border: 14px solid #FF7A00;
    z-index: -1;
    filter: url(#sketch-filter);
    pointer-events: none;
}

/* Animated Text Styles */
.animated-text-container {
    width: 100%;
    margin: 0 auto 32px auto;
    text-align: center;
    font-family: 'Inconsolata', monospace;
    font-size: clamp(1.2em, 5vw, 3em);
    color: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.animated-text-container .static {
    font-size: clamp(12px, 2.5vw, 16px);
    font-variation-settings: "wght" 900, "wdth" 150;
    font-family: 'Inconsolata', monospace;
    margin-bottom: 16px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.animated-text-container .variable {
    display: flex;
    justify-content: center;
    align-items: center;
    font-variation-settings: "wght" 275, "wdth" 50;
    text-align: center;
    animation: swapthings 3s infinite both cubic-bezier(0.17, 0.04, 0.04, 0.99);
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.animated-text-container .work {
    animation: swapthings2 3s infinite both cubic-bezier(0.17, 0.04, 0.04, 0.99);
}

.medication-gif-container {
    width: 100%;
    margin: 0 0 24px 0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
}

.medication-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

@keyframes swapthings {
    0% {
        font-variation-settings: "wght" 275, "wdth" 50;
    }
    50% {
        font-variation-settings: "wght" 900, "wdth" 150;
    }
    100% {
        font-variation-settings: "wght" 275, "wdth" 50;
    }
}

@keyframes swapthings2 {
    0% {
        font-variation-settings: "wght" 900, "wdth" 150;
    }
    50% {
        font-variation-settings: "wght" 275, "wdth" 50;
    }
    100% {
        font-variation-settings: "wght" 900, "wdth" 150;
    }
}

.home-subheading {
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.4;
    opacity: 0.8;
}

.home-heading {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    line-height: 1.2;
    text-align: center;
}

.gif-container {
    width: 100%;
    margin: 0 0 24px 0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.medication-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.medication-gif:not([src]),
.medication-gif[src=""] {
    display: none;
}

.gif-container:has(.medication-gif:not([src])),
.gif-container:has(.medication-gif[src=""]) {
    min-height: 0;
}

.done-button {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFC371 50%, #FFE66D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 14px 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3), 0 2px 4px rgba(255, 107, 157, 0.2);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.done-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(255, 107, 157, 0.25), 0 1px 2px rgba(255, 107, 157, 0.15);
}

.done-button:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4), 0 2px 4px rgba(255, 107, 157, 0.25);
}

/* Celebrate View Styles */
.celebrate-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 24px 16px;
    text-align: center;
    background-color: #000000;
    margin: 0;
    box-sizing: border-box;
}

.celebrate-view .content-card {
    padding: 32px 24px;
}

.celebrate-heading {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.celebrate-gif-container {
    width: 100%;
    margin: 0 0 24px 0;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebrate-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.celebrate-gif:not([src]),
.celebrate-gif[src=""] {
    display: none;
}

.celebrate-gif-container:has(.celebrate-gif:not([src])),
.celebrate-gif-container:has(.celebrate-gif[src=""]) {
    min-height: 0;
}

.celebrate-text {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 24px 0;
    padding: 0;
    font-weight: 400;
    opacity: 0.8;
}

.show-streak-button {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFC371 50%, #FFE66D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 14px 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3), 0 2px 4px rgba(255, 107, 157, 0.2);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
}

.show-streak-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(255, 107, 157, 0.25), 0 1px 2px rgba(255, 107, 157, 0.15);
}

.show-streak-button:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4), 0 2px 4px rgba(255, 107, 157, 0.25);
}

.home-button {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FFC371 50%, #FFE66D 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    padding: 14px 24px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3), 0 2px 4px rgba(255, 107, 157, 0.2);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    margin-top: 24px;
    margin-bottom: 32px;
}

.home-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(255, 107, 157, 0.25), 0 1px 2px rgba(255, 107, 157, 0.15);
}

.home-button:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4), 0 2px 4px rgba(255, 107, 157, 0.25);
}

/* Streak View Styles */
.streak-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 24px 16px;
    text-align: center;
    background-color: #000000;
    margin: 0;
    box-sizing: border-box;
}

.streak-view .content-card {
    padding: 32px 24px;
    max-width: 340px;
}

.streak-card {
    background: #000000;
    border-radius: 0;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.streak-card .content {
    display: flex;
    align-content: center;
    justify-content: center;
}

.streak-number {
    text-shadow: 3px 3px 0 #FFB88C, 6px 6px 0 #FFC371,
        9px 9px 0 #FFD99A, 12px 12px 0 #FFE66D;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(80px, 15vw, 140px);
    text-align: center;
    margin: 0;
    color: #FF6B9D;
    animation: shadows 1.2s ease-in infinite;
    letter-spacing: -2px;
    line-height: 1;
}

@keyframes shadows {
    0% {
        text-shadow: none;
    }
    10% {
        transform: translate(-3px, -3px);
        text-shadow: 3px 3px 0 #FFB88C;
    }
    20% {
        transform: translate(-6px, -6px);
        text-shadow: 3px 3px 0 #FFB88C,
            6px 6px 0 #FFC371;
    }
    30% {
        transform: translate(-9px, -9px);
        text-shadow: 3px 3px 0 #FFB88C,
            6px 6px 0 #FFC371, 9px 9px 0 #FFD99A;
    }
    40% {
        transform: translate(-12px, -12px);
        text-shadow: 3px 3px 0 #FFB88C,
            6px 6px 0 #FFC371, 9px 9px 0 #FFD99A,
            12px 12px 0 #FFE66D;
    }
    50% {
        transform: translate(-12px, -12px);
        text-shadow: 3px 3px 0 #FFB88C,
            6px 6px 0 #FFC371, 9px 9px 0 #FFD99A,
            12px 12px 0 #FFE66D;
    }
    60% {
        text-shadow: 3px 3px 0 #FFB88C,
            6px 6px 0 #FFC371, 9px 9px 0 #FFD99A,
            12px 12px 0 #FFE66D;
    }
    70% {
        text-shadow: 3px 3px 0 #FFB88C,
            6px 6px 0 #FFC371, 9px 9px 0 #FFD99A;
    }
    80% {
        text-shadow: 3px 3px 0 #FFB88C,
            6px 6px 0 #FFC371;
    }
    90% {
        text-shadow: 3px 3px 0 #FFB88C;
    }
    100% {
        text-shadow: none;
    }
}

.streak-emoji {
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    margin-bottom: 8px;
    opacity: 0.9;
}

.streak-text {
    font-size: clamp(18px, 3.5vw, 24px);
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0.75;
    margin: 0;
}

.week-section {
    width: 100%;
}

.week-label {
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    text-align: left;
    margin: 0 0 12px 0;
    padding: 0;
    opacity: 0.7;
}

.week-calendar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.day-label {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-check svg {
    display: block;
}

.streak-active svg circle {
    fill: #7ED957;
}

.streak-skipped svg circle {
    fill: #333333;
}

.day-check.streak-active svg {
    transform: scale(1.1);
}
