/* ═══════════════════════════════════════════════════════════════════ */
/* DIGITAL BIRTHDAY CARD SYSTEM STYLES - The Lost Transition */
/* ═══════════════════════════════════════════════════════════════════ */

.birthday-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.birthday-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid #FF8C00;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.birthday-header {
    background: linear-gradient(135deg, #FF8C00, #FFB84D);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.birthday-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.birthday-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.birthday-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.birthday-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 25px;
}

.birthday-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 3px solid #FF8C00;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.6s ease both;
}

@keyframes cardEntrance {
    from {
        transform: translateY(30px) rotateX(-15deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.birthday-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 15px;
    pointer-events: none;
}

.confetti, .balloons {
    font-size: 24px;
    animation: bounce 2s infinite;
}

.balloons {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.birthday-avatar {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.birthday-message {
    margin: 20px 0;
}

.birthday-message h3 {
    color: #FF8C00;
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
}

.birthday-message h2 {
    color: #1a2b47;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: bold;
}

.birthday-message p {
    color: #666;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

.birthday-cake {
    font-size: 48px;
    margin: 20px 0;
    animation: spin 4s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.birthday-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.birthday-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.birthday-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.birthday-btn.primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.birthday-btn.primary:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.birthday-btn.secondary {
    background: linear-gradient(135deg, #FF8C00, #FFB84D);
    color: white;
}

.birthday-btn.secondary:hover {
    background: linear-gradient(135deg, #FFB84D, #FF8C00);
}

.birthday-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
    padding: 20px;
    border-radius: 0 0 16px 16px;
    border-top: 2px solid #FF8C00;
}

.birthday-footer p {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.birthday-notification {
    display: flex;
    align-items: center;
    gap: 10px;
}

.birthday-notification i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .birthday-cards-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .birthday-card {
        padding: 20px;
    }
    
    .birthday-header {
        padding: 15px 20px;
    }
    
    .birthday-header h2 {
        font-size: 20px;
    }
    
    .birthday-message h2 {
        font-size: 24px;
    }
    
    .birthday-actions {
        flex-direction: column;
    }
    
    .birthday-btn {
        width: 100%;
    }
}

/* Special Effects */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.birthday-card::before {
    content: '✨';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    animation: sparkle 3s infinite;
    animation-delay: 1s;
}

.birthday-card::after {
    content: '⭐';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 16px;
    animation: sparkle 3s infinite;
    animation-delay: 2s;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .birthday-modal {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .birthday-card {
        background: linear-gradient(145deg, #2c3e50, #34495e);
        color: white;
    }
    
    .birthday-message p {
        color: #bdc3c7;
    }
}