/* ===========================================
   COSMIC CINEMATIC DESIGN - CLAUDE TIMER
   =========================================== */

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

body {
    font-family: 'Lora', serif;
    background:
        radial-gradient(ellipse at top, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow-x: hidden;
}

#click-counter {
    position: fixed;
    top: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 580px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.8) 20%,
        rgba(255, 215, 0, 0.4) 50%,
        rgba(255, 215, 0, 0.8) 80%,
        transparent 100%);
}

h1 {
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 8px;
    font-size: 2.2em;
    font-weight: 700;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
    letter-spacing: -0.02em;
    position: relative;
}

.container > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    font-size: 1em;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.input-section {
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 18px;
    padding-top: 18px;
    margin-top: 24px;
    margin-bottom: 0px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.input-section h2 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.input-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.8) 0%,
        rgba(255, 119, 198, 0.6) 100%);
    border-radius: 1px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

input[type="date"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.8);
    cursor: pointer;
}

button {
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.9) 0%,
        rgba(255, 165, 0, 0.8) 100%);
    color: rgba(0, 0, 0, 0.9);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-shadow:
        0 3px 12px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    transition: left 0.5s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0);
}

#clearBtn {
    background: linear-gradient(135deg,
        rgba(255, 119, 198, 0.9) 0%,
        rgba(255, 69, 150, 0.8) 100%);
    color: white;
    box-shadow:
        0 4px 15px rgba(255, 119, 198, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#clearBtn:hover {
    box-shadow:
        0 8px 25px rgba(255, 119, 198, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.results-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    margin-top: 22px;
}

.results-section h2 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.results-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(120, 119, 198, 0.8) 0%,
        rgba(255, 119, 198, 0.6) 100%);
    border-radius: 1px;
}

.reset-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.reset-time::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
        rgba(255, 215, 0, 0.8) 0%,
        rgba(255, 119, 198, 0.6) 100%);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
}

.reset-time:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

.reset-time.yesterday::before {
    background: linear-gradient(180deg,
        rgba(108, 117, 125, 0.8) 0%,
        rgba(108, 117, 125, 0.4) 100%);
}

.reset-time.today::before {
    background: linear-gradient(180deg,
        rgba(40, 167, 69, 0.9) 0%,
        rgba(40, 167, 69, 0.6) 100%);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.reset-time.today {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    font-weight: 600;
}

.reset-time.tomorrow::before {
    background: linear-gradient(180deg,
        rgba(255, 165, 0, 0.8) 0%,
        rgba(255, 140, 0, 0.4) 100%);
}

.reset-time.future::before {
    background: linear-gradient(180deg,
        rgba(0, 123, 255, 0.8) 0%,
        rgba(0, 123, 255, 0.4) 100%);
}

.reset-time.next-reset {
    border-color: rgba(255, 255, 255, 0.8);
}

.reset-time.next-reset::before {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.6) 100%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.reset-time.clicked {
    opacity: 0.5;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.date-tag {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    min-width: 80px;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 0.9em;
}

.time {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.upcoming-label {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.65em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 8px;
    }

    h1 {
        font-size: 1.8em;
    }

    .reset-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 16px;
    }

    button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .input-section,
    .results-section {
        padding: 16px;
    }
}

/* Cosmic particle animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.container::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.container::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 8%;
    width: 2px;
    height: 2px;
    background: rgba(255, 119, 198, 0.7);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    box-shadow: 0 0 8px rgba(255, 119, 198, 0.5);
}

/* About Section Styling */
.about-section {
    margin-top: 24px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.003);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    text-align: center;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.about-section:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 215, 0, 0.15);
    transform: translateY(-1px);
}

.about-section p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75em;
    line-height: 1.4;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.about-section:hover p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.75em;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.005);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.social-links a:hover {
    color: rgba(255, 215, 0, 0.9);
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px) scale(1.1);
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.15);
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .social-links a {
        width: 100%;
        max-width: 200px;
    }
}
