/* Counter Page Styles */

.counter-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Particles Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Background Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #5e9cff 0%, transparent 70%);
    left: 10%;
    bottom: 10%;
    animation: float-up-1 15s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #a855f7 0%, transparent 70%);
    right: 15%;
    bottom: 15%;
    animation: float-up-2 18s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    left: 50%;
    bottom: 20%;
    animation: float-up-3 20s ease-in-out infinite;
}

@keyframes float-up-1 {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-30vh) scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-60vh) scale(1);
        opacity: 0.2;
    }
}

@keyframes float-up-2 {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translateY(-25vh) scale(1.15);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-50vh) scale(1);
        opacity: 0.2;
    }
}

@keyframes float-up-3 {
    0% {
        transform: translate(-50%, 0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -30vh) scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -60vh) scale(1);
        opacity: 0.2;
    }
}

/* Counter Container */
.counter-container {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Main Title */
.main-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0;
    text-shadow: 0 0 30px rgba(94, 156, 255, 0.5);
    letter-spacing: -0.02em;
}

/* Gauge - Fixed size with inner padding */
.gauge-container {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.gauge-progress {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px rgba(94, 156, 255, 0.5));
}

/* Counter display - smaller area inside gauge */
.counter-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    padding: 2rem;
    box-sizing: border-box;
}

/* Counter value - responsive size to prevent overflow */
.counter-value {
    font-size: clamp(6rem, 7rem, 8rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 30px rgba(94, 156, 255, 0.5), 0 0 60px rgba(168, 85, 247, 0.3);
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
}

/* Target Days */
.target-days {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.target-label {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.target-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a855f7;
}

/* Start Date */
.start-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.start-date-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.start-date-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00d26a;
}

/* Last Update */
.last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.last-update-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.last-update-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.counter-footer {
    position: absolute;
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00d26a;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet - Portrait and smaller desktops */
@media (max-width: 768px) {
    .counter-page {
        padding: 1.5rem;
    }

    .gauge-container {
        width: 380px;
        height: 380px;
    }

    .counter-display {
        width: 240px;
        height: 240px;
        padding: 1.75rem;
    }

    .counter-value {
        font-size: clamp(5rem, 10vw, 6.5rem);
    }

    .counter-container {
        gap: 1.25rem;
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 220px;
        height: 220px;
    }

    .orb {
        filter: blur(60px);
    }
}

/* Mobile - Large */
@media (max-width: 480px) {
    .gauge-container {
        width: 280px;
        height: 280px;
    }

    .counter-display {
        width: 200px;
        height: 200px;
        padding: 1.5rem;
    }

    .main-title {
        font-size: 1.25rem;
    }

    .counter-page {
        padding: 1rem;
    }

    .counter-value {
        font-size: clamp(4rem, 12vw, 5.5rem);
    }

    .counter-container {
        gap: 1rem;
    }

    .target-label,
    .start-date-label,
    .last-update-label {
        font-size: 0.8rem;
    }

    .target-value {
        font-size: 1.1rem;
    }

    .start-date-value,
    .last-update-date {
        font-size: 0.8rem;
    }

    .orb-1 {
        width: 200px;
        height: 200px;
    }

    .orb-2 {
        width: 170px;
        height: 170px;
    }

    .orb-3 {
        width: 150px;
        height: 150px;
    }

    .orb {
        filter: blur(50px);
    }
}

/* Mobile - Small */
@media (max-width: 360px) {
    .gauge-container {
        width: 240px;
        height: 240px;
    }

    .counter-display {
        width: 170px;
        height: 170px;
        padding: 1.25rem;
    }

    .counter-page {
        padding: 0.75rem;
    }

    .counter-value {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .main-title {
        font-size: 1.1rem;
    }

    .counter-container {
        gap: 0.75rem;
    }

    .target-label,
    .start-date-label,
    .last-update-label {
        font-size: 0.75rem;
    }

    .target-value {
        font-size: 1rem;
    }

    .start-date-value,
    .last-update-date {
        font-size: 0.75rem;
    }

    .orb-1 {
        width: 150px;
        height: 150px;
    }

    .orb-2 {
        width: 130px;
        height: 130px;
    }

    .orb-3 {
        width: 110px;
        height: 110px;
    }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .counter-page {
        padding: 0.5rem 1rem;
    }

    .gauge-container {
        width: 220px;
        height: 220px;
    }

    .counter-display {
        width: 160px;
        height: 160px;
        padding: 1rem;
    }

    .counter-value {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .main-title {
        font-size: 1rem;
    }

    .counter-container {
        gap: 0.5rem;
    }

    .target-days,
    .start-date,
    .last-update {
        font-size: 0.7rem;
    }

    .orb {
        filter: blur(40px);
        opacity: 0.3;
    }
}

/* Additional global styles */
html,
body {
    height: 100% !important;
    margin: 0;
    padding: 0;
}

#particles-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

#particles-area canvas {
    width: 100% !important;
    height: 100% !important;
}

.counter-value {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
}