/* Component styles */

/* Notification toast */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #0A0A0B;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification::before {
    content: '✓';
    margin-right: 0.5rem;
    color: #8B9DC3;
}

/* Modal components */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    animation: fadeInOverlay 0.3s ease-out forwards;
}

.modal__container {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    animation: fadeInModal 0.3s ease-out 0.1s forwards;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #4A4A4A;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
    background-color: #f5f5f5;
    color: #0A0A0B;
}

.modal__close:focus {
    outline: 2px solid #8B9DC3;
    outline-offset: 2px;
}

.modal__content {
    padding: 2rem;
    padding-top: 3rem;
}

.modal__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #0A0A0B;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal__description {
    color: #4A4A4A;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal__button {
    background-color: #8B9DC3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.modal__button:hover {
    background-color: #7a8bb0;
    transform: translateY(-1px);
}

.modal__button:focus {
    outline: 2px solid #8B9DC3;
    outline-offset: 2px;
}

.modal__button:active {
    transform: translateY(0);
}

/* Modal animations */
@keyframes fadeInOverlay {
    to {
        opacity: 1;
    }
}

@keyframes fadeInModal {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Mobile modal adjustments */
@media (max-width: 640px) {
    .modal__content {
        padding: 1.5rem;
        padding-top: 2.5rem;
    }
    
    .modal__title {
        font-size: 1.25rem;
    }
    
    .modal__description {
        font-size: 0.9rem;
    }
}