/* Birthday Celebration Styles */

/* Modal Content - Gender-based themes */
.birthday-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeInScale 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Default/Other Gender Theme - Purple gradient (original) */
.birthday-modal-content.birthday-theme-default,
.birthday-modal-content:not([class*="birthday-theme-"]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Male Theme - Blue gradient */
.birthday-modal-content.birthday-theme-male {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Female Theme - Pink/Purple gradient */
.birthday-modal-content.birthday-theme-female {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

@keyframes modalFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Close Button */
.birthday-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    color: white;
    opacity: 0.7;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.birthday-close-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Container */
.birthday-container {
    position: relative;
    padding: 40px 30px;
    background: white;
    min-height: 450px;
}

/* Balloons */
.birthday-balloons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.balloon-1 {
    left: 10%;
    animation-delay: 0s;
}

.balloon-2 {
    left: 30%;
    animation-delay: 1s;
}

.balloon-3 {
    left: 50%;
    animation-delay: 2s;
}

.balloon-4 {
    left: 70%;
    animation-delay: 3s;
}

.balloon-5 {
    left: 90%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
    }
    50% {
        transform: translateY(-20vh) rotate(180deg);
    }
}

/* Content */
.birthday-content {
    position: relative;
    z-index: 2;
}

/* Birthday Cake Icon */
.birthday-cake-icon {
    font-size: 3.5rem;
    animation: cakeBounce 1s ease-in-out infinite;
    display: inline-block;
    margin-bottom: 0.5rem !important;
}

@keyframes cakeBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Birthday Title */
.birthday-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem !important;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Staff Card */
.birthday-staff-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 15px auto;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.birthday-staff-card::before {
    content: '✨';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.birthday-staff-card::after {
    content: '✨';
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Fade in up animation */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Photo */
.birthday-profile-photo {
    position: relative;
    display: inline-block;
    animation: photoZoomIn 0.8s ease-out;
}

@keyframes photoZoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.birthday-profile-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: photoPulse 2s ease-in-out infinite;
}

@keyframes photoPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    }
}

.birthday-avatar-placeholder {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Birthday Badge */
.birthday-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: badgeRotate 3s ease-in-out infinite;
}

@keyframes badgeRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(20deg) scale(1.1);
    }
}

/* Staff Name */
.birthday-staff-name {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

/* Job Title */
.birthday-job-title {
    font-size: 1.1rem;
    color: #718096;
}

/* Age Badge */
.birthday-age .badge {
    font-size: 1rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: badgeBounce 2s ease-in-out infinite;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Birthday Message */
.birthday-message {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.6;
}

.birthday-message .lead {
    font-size: 1.05rem !important;
    margin-bottom: 0.75rem !important;
}

/* Footer Message */
.birthday-from-message {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin: 0;
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
}

/* Buttons */
.birthday-actions .btn {
    transition: all 0.3s ease;
}

.birthday-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-container {
        padding: 40px 20px;
    }

    .birthday-title {
        font-size: 2rem;
    }

    .birthday-cake-icon {
        font-size: 3rem;
    }

    .birthday-profile-photo img,
    .birthday-avatar-placeholder {
        width: 120px;
        height: 120px;
    }

    .birthday-staff-name {
        font-size: 1.5rem;
    }

    .birthday-message {
        font-size: 1rem;
    }

    .balloon {
        font-size: 2rem;
    }
}

/* Confetti Canvas */
#birthdayConfetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Birthday Messages Carousel Styles */
.birthday-messages-carousel {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e9f0 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
}

.birthday-messages-title {
    color: #667eea;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.birthday-message-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    min-height: 120px;
    max-height: 150px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.message-sender-avatar {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border: 2px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.message-sender strong {
    font-size: 14px;
    color: #333;
}

.message-content {
    text-align: center;
    max-width: 100%;
    overflow-y: auto;
    max-height: 80px;
}

.message-text {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    font-style: italic;
    margin: 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    border-radius: 6px;
}

/* Carousel Controls */
.birthday-messages-carousel .carousel-control-prev,
.birthday-messages-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
}

.birthday-messages-carousel .carousel-control-prev:hover,
.birthday-messages-carousel .carousel-control-next:hover {
    background: rgba(102, 126, 234, 1);
    opacity: 1;
}

.birthday-messages-carousel .carousel-control-prev {
    left: -20px;
}

.birthday-messages-carousel .carousel-control-next {
    right: -20px;
}

.birthday-messages-carousel .carousel-control-prev-icon,
.birthday-messages-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Carousel Indicators (if needed) */
.birthday-messages-carousel .carousel-indicators {
    bottom: -30px;
}

.birthday-messages-carousel .carousel-indicators button {
    background-color: #667eea;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.birthday-messages-carousel .carousel-indicators button.active {
    background-color: #764ba2;
}

/* Birthday Link in Topbar - Prominent Styling */
.birthday-link-special {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    margin: 0 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.birthday-link-special:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transform: translateY(-1px);
}

/* Gift Icon */
.birthday-gift-icon {
    color: #FFD700 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Birthday Link Text */
.birthday-link-text {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Badge Styling - New Message */
.birthday-badge-new {
    background: #ff6b6b !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 0.65rem !important;
    padding: 3px 6px !important;
    border-radius: 10px !important;
    margin-left: 6px !important;
}

/* Badge Styling - Viewed */
.birthday-badge-viewed {
    background: #51cf66 !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    padding: 3px 6px !important;
    border-radius: 10px !important;
    margin-left: 6px !important;
}

/* Responsive adjustments for birthday link */
@media (max-width: 992px) {
    .birthday-link-special {
        padding: 6px 12px !important;
        margin: 0 4px;
    }
}

@media (max-width: 768px) {
    .birthday-link-special {
        padding: 5px 10px !important;
    }
}
