@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    body {
        @apply bg-light font-sans text-dark antialiased;
    }
}

@layer components {
    .button {
        @apply w-full font-medium py-3 px-6 rounded-lg border-2 shadow-md transition focus:outline-none focus:ring-2 focus:ring-opacity-50;
    }
    .button-primary {
        @apply bg-button border-button text-white hover:bg-buttonHover focus:ring-button;
    }
    .button-secondary {
        @apply bg-secondary border-secondary text-dark hover:bg-secondary-dark focus:ring-secondary;
    }
    .button-light {
        @apply bg-light text-dark border-gray-200 hover:bg-white hover:text-button hover:border-button;
    }
}

@layer utilities {
    .bg-button {
        background-color: #FF4B4B;
    }
    .bg-buttonHover {
        background-color: #FF3333;
    }
    .border-button {
        border-color: #FF4B4B;
    }
    .text-button {
        color: #FF4B4B;
    }
}

/* Custom styles for the Memory Timeline app */

/* Timeline styling */
.memory-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.memory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.memory-date {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.memory-tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background-color: #EEF2FF;
    color: #4F46E5;
    border-radius: 9999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    font-weight: 500;
}

/* Timeline connector */
.timeline-connector {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 2px;
    background-color: #E5E7EB;
    z-index: -1;
}

.timeline-dot {
    position: absolute;
    left: 8px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4F46E5;
    z-index: 1;
}

.year-marker {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    margin-top: 32px;
    font-weight: 600;
    color: #4F46E5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.memory-item {
    animation: fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .memory-card {
        margin-left: 20px;
    }
    
    .timeline-dot {
        left: 0;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background-color: #D1D5DB;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #9CA3AF;
} 