/* Daily Code Page Styles - Process Steps Style */

/* Mobile Styles (до 767px) */
@media (max-width: 767px) {
    /* Body background */
    body {
        background: #F0F3F5;
    }

    /* Main Content Styles */
    .main-content {
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 80px;
        color: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
    }

    /* Daily Code Container */
    .daily-code-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 16px;
    }

    /* Page Title */
    .page-title {
        font-family: 'Inria Serif', serif;
        font-weight: 700;
        font-size: 36px;
        line-height: 1.2;
        color: #1A1A1A;
        margin: 0 0 48px 0;
        text-align: center;
    }

    /* Days List Container */
    .days-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    /* Day Item - Process Steps Style */
    .day-item {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 10px;
        background: #FFFFFF;
        border-radius: 32px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        text-decoration: none;
        color: inherit;
    }

    .day-item:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0px 8px 40px rgba(39, 39, 39, 0.08) !important;
    }

    /* Day Content */
    .day-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        gap: 16px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
    }

    /* Day Number */
    .day-number {
        width: auto;
        height: auto;
        font-family: 'Inria Serif', serif;
        font-style: italic;
        font-weight: 600;
        font-size: 18px;
        line-height: 1.2;
        color: #1A1A1A;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: none;
        order: 0;
        flex-grow: 0;
    }

    /* Day Text */
    .day-text {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        flex: 1;
        order: 1;
        flex-grow: 1;
        text-align: left;
    }

    /* Day Title */
    .day-title {
        width: 100%;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 116%;
        display: flex;
        align-items: center;
        letter-spacing: -0.5px;
        color: #787878;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        text-align: left;
    }

    /* Day Arrow */
    .day-arrow {
        width: 20px;
        height: 20px;
        flex: none;
        order: 2;
        flex-grow: 0;
        align-self: center;
        opacity: 0.2;
        transition: opacity 0.3s ease;
    }
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Body background */
    body {
        background: #F0F3F5;
    }

    /* Main Content Styles */
    .main-content {
        min-height: 100vh;
        padding-top: 140px;
        padding-bottom: 90px;
        color: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
    }

    /* Daily Code Container */
    .daily-code-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* Page Title */
    .page-title {
        font-family: 'Inria Serif', serif;
        font-weight: 700;
        font-size: 56px;
        line-height: 1.2;
        color: #1A1A1A;
        margin: 0 0 80px 0;
        text-align: center;
    }

    /* Days List Container */
    .days-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /* Day Item - Process Steps Style */
    .day-item {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 10px;
        background: #FFFFFF;
        border-radius: 32px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        text-decoration: none;
        color: inherit;
    }

    .day-item:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0px 8px 40px rgba(39, 39, 39, 0.08) !important;
    }

    /* Day Content */
    .day-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 32px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
    }

    /* Day Number */
    .day-number {
        width: auto;
        height: auto;
        font-family: 'Inria Serif', serif;
        font-style: italic;
        font-weight: 600;
        font-size: 18px;
        line-height: 1.2;
        color: #1A1A1A;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: none;
        order: 0;
        flex-grow: 0;
    }

    /* Day Text */
    .day-text {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        flex: 1;
        order: 1;
        flex-grow: 1;
    }

    /* Day Title */
    .day-title {
        width: 100%;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 116%;
        display: flex;
        align-items: center;
        letter-spacing: -0.5px;
        color: #787878;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        text-align: left;
    }

    /* Day Arrow */
    .day-arrow {
        width: 24px;
        height: 24px;
        flex: none;
        order: 2;
        flex-grow: 0;
        align-self: center;
        opacity: 0.2;
        transition: opacity 0.3s ease;
    }
}

/* Desktop Styles (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    /* Body background */
    body {
        background: #F0F3F5;
    }

    /* Main Content Styles */
    .main-content {
        min-height: 100vh;
        padding-top: 168px;
        padding-bottom: 104px;
        color: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
    }

    /* Daily Code Container */
    .daily-code-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* Page Title */
    .page-title {
        font-family: 'Inria Serif', serif;
        font-weight: 700;
        font-size: 56px;
        line-height: 1.2;
        color: #1A1A1A;
        margin: 0 0 80px 0;
        text-align: center;
    }

    /* Days List Container */
    .days-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /* Day Item - Process Steps Style */
    .day-item {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 10px;
        background: #FFFFFF;
        border-radius: 32px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        text-decoration: none;
        color: inherit;
    }

    .day-item:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0px 8px 40px rgba(39, 39, 39, 0.08) !important;
    }

    /* Day Content */
    .day-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 32px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
    }

    /* Day Number */
    .day-number {
        width: auto;
        height: auto;
        font-family: 'Inria Serif', serif;
        font-style: italic;
        font-weight: 600;
        font-size: 18px;
        line-height: 1.2;
        color: #1A1A1A;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: none;
        order: 0;
        flex-grow: 0;
    }

    /* Day Text */
    .day-text {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        flex: 1;
        order: 1;
        flex-grow: 1;
    }

    /* Day Title */
    .day-title {
        width: 100%;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 116%;
        display: flex;
        align-items: center;
        letter-spacing: -0.5px;
        color: #787878;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        text-align: left;
    }

    /* Day Arrow */
    .day-arrow {
        width: 24px;
        height: 24px;
        flex: none;
        order: 2;
        flex-grow: 0;
        align-self: center;
        opacity: 0.2;
        transition: opacity 0.3s ease;
    }
}

/* Large Desktop Styles (1440px+) */
@media (min-width: 1440px) {
    /* Body background */
    body {
        background: #F0F3F5;
    }

    /* Main Content Styles */
    .main-content {
        min-height: 100vh;
        padding-top: 168px;
        padding-bottom: 104px;
        color: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-x: hidden;
    }

    /* Daily Code Container */
    .daily-code-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 660px;
        margin: 0 auto;
        padding: 0 40px;
    }

    /* Page Title */
    .page-title {
        font-family: 'Inria Serif', serif;
        font-weight: 700;
        font-size: 48px;
        line-height: 1.2;
        color: #1A1A1A;
        margin: 0 0 80px 0;
        text-align: center;
    }

    /* Days List Container */
    .days-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    /* Day Item - Process Steps Style */
    .day-item {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 10px;
        background: #FFFFFF;
        border-radius: 32px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        box-shadow: 0px 5px 32px rgba(39, 39, 39, 0.02);
        position: relative;
        overflow: hidden;
        transform: translateY(0);
        text-decoration: none;
        color: inherit;
    }

    .day-item:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0px 8px 40px rgba(39, 39, 39, 0.08) !important;
    }

    /* Day Content */
    .day-content {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 32px;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
    }

    /* Day Number */
    .day-number {
        width: auto;
        height: auto;
        font-family: 'Inria Serif', serif;
        font-style: italic;
        font-weight: 600;
        font-size: 18px;
        line-height: 1.2;
        color: #1A1A1A;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: none;
        order: 0;
        flex-grow: 0;
    }

    /* Day Text */
    .day-text {
        width: auto;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 0px;
        gap: 8px;
        flex: 1;
        order: 1;
        flex-grow: 1;
    }

    /* Day Title */
    .day-title {
        width: 100%;
        height: auto;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 116%;
        display: flex;
        align-items: center;
        letter-spacing: -0.5px;
        color: #787878;
        flex: none;
        order: 0;
        align-self: stretch;
        flex-grow: 0;
        text-align: left;
    }

    /* Day Arrow */
    .day-arrow {
        width: 24px;
        height: 24px;
        flex: none;
        order: 2;
        flex-grow: 0;
        align-self: center;
        opacity: 0.2;
        transition: opacity 0.3s ease;
    }
}

/* ========== ОБЩИЕ СТИЛИ ========== */

/* Scroll Animation Styles */
.day-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.day-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor Support */
.day-item {
    cursor: pointer;
}

/* Custom cursor elements */
.custom-cursor,
.custom-cursor-pointer {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    background-size: contain;
    background-repeat: no-repeat;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.custom-cursor {
    background-image: url('/Cursor/Spirited Away Susuwatari Animated--cursor--SweezyCursors.png');
    background-position: center;
    background-size: 32px 32px;
}

.custom-cursor-pointer {
    background-image: url('/Cursor/Spirited Away Susuwatari Animated--pointer--SweezyCursors.png');
    background-position: center;
    opacity: 0;
}

/* Hide default cursor when custom cursor is active */
body.custom-cursor-active {
    cursor: none !important;
}

/* Fallback cursor styles for browsers that don't support custom cursors */
@supports not (cursor: url()) {
    body {
        cursor: auto;
    }
    
    .day-item {
        cursor: pointer;
    }
}

/* Hover Effects */
.day-item:hover .day-number {
    color: #1A1A1A;
}

.day-item:hover .day-title {
    color: #1A1A1A;
}

.day-item:hover .day-arrow {
    opacity: 1;
}

/* ========== EMOJI ANIMATIONS ========== */

@keyframes emojiFloat {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(var(--move-x), var(--move-y)) scale(0.8);
    opacity: 0;
  }
}

.day-emoji-animated {
  animation: emojiFloat 3s ease-out forwards;
  transition: opacity 0.3s ease;
}

.day-emoji-animated.frozen {
  animation: none !important;
  transform: none !important;
}

.day-emoji-animated.frozen {
  animation: emojiPulse 2s ease-in-out infinite;
}

@keyframes emojiPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}