/* Homepage Styles */
body {
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease;
    background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 50%, #fef2f2 100%);
    min-height: 100vh;
    padding: 1rem;
    margin: 0;
    position: relative;
}

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

@media (min-width: 768px) {
    body {
        padding: 2rem;
    }
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .header {
        margin-bottom: 4rem;
        padding-top: 3rem;
    }
}

.header-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .header-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .header-title {
        font-size: 4.5rem;
    }
}

.header-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .header-subtitle {
        font-size: 1.25rem;
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    padding-bottom: 2rem;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #2563eb;
}

.icon-wrapper-blue {
    background-color: #dbeafe;
}

.icon-wrapper-dark {
    background-color: #111827;
}

.icon-wrapper-red {
    background-color: #fee2e2;
}

.icon-wrapper-pink {
    background-color: #fce7f3;
}

.icon-emoji {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .icon-emoji {
        font-size: 2.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
    background-size: 200% 200%;
}

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

.countdown-card {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-card:hover {
    transform: translateY(-8px);
}

.card-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.countdown-card:hover .card-content {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.countdown-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.card-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-arrow {
    font-weight: 600;
    color: #667eea;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.countdown-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    }
    
    .card-content {
        background: #1f2937;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    }
    
    .countdown-card:hover .card-content {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    }
    
    .card-title {
        color: #f9fafb;
    }
    
    .card-description {
        color: #9ca3af;
    }
    
    header p {
        color: #d1d5db !important;
    }
    
    footer {
        color: #9ca3af !important;
    }
    
    footer a {
        color: #9ca3af !important;
    }
    
    footer a:hover {
        color: #667eea !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-content {
        padding: 24px;
    }
    
    .icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .icon-wrapper span {
        font-size: 40px !important;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .card-description {
        font-size: 14px;
    }
}

/* Legacy styles for other pages */
.day-text {
    font-weight: 400; 
    line-height: 1;
    animation: pulse 3s infinite ease-in-out; 
}

@keyframes pulse {
    0%, 100% { 
        color: #DB4437;
    }
    25% {
        color: #F4B400;
    }
    50% { 
        color: #0F9D58;
    }
    75% {
        color: #4285F4;
    }
}

.day-text.is-friday {
    animation-name: pulse;
    animation-duration: 3s; 
    color: #4285F4; 
}

.visit-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    user-select: none;
    opacity: 0.7;
}

.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 8px;
}

.music-icon-img {
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.music-icon-img.playing {
    animation: heartbeat 1.5s infinite ease-in-out;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle {
    opacity: 0.4;
}


/* Dark mode styles for music button */
@media (prefers-color-scheme: dark) {
    .music-toggle {
        background: transparent;
    }
    
    .music-toggle:hover {
        background: transparent;
    }
}

body.dark-mode .music-toggle {
    background: transparent;
}

body.dark-mode .music-toggle:hover {
    background: transparent;
}

.frog-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

.frog-text {
    font-size: 12px;
    color: #ccc;
    font-weight: 400;
    margin: 2px 0;
    text-align: center;
    white-space: nowrap;
}

.frog-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transition: opacity 0.3s ease-out;
    animation: heartbeat 1.5s infinite ease-in-out;
}

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

.frog-container:hover .frog-icon {
    opacity: 0.8;
}

.fade-out {
    opacity: 0;
}