/**
 * Style dla systemu powiadomień urodzinowych - ksperlawegrow.pl
 *
 * Spójna stylistyka z powiadomieniami meczowymi (match-notifications)
 * Złota kolorystyka (gradient #AE802F → #FFEFA7) dla odróżnienia od meczów (niebieski)
 */

/* ═══════════════════════════════════════════════════════════════════════════
   KARTA URODZINOWA - GŁÓWNY KONTENER
   ═══════════════════════════════════════════════════════════════════════════ */

.birthday-notification {
    position: relative;
    display: flex;
    flex-direction: column;
    border-left: 4px solid #AE802F; /* Złoty zamiast niebieskiego */
}

/* Header z gradientem złotym */
.birthday-notification .notification-header {
    background: linear-gradient(135deg, #AE802F 0%, #FFEFA7 100%);
    padding: 10px 15px;
    text-align: center;
}

.birthday-notification .notification-badge {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.birthday-notification .notification-badge i {
    margin-right: 5px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEKCJA ZDJĘĆ I TEKSTU
   ═══════════════════════════════════════════════════════════════════════════ */

.notification-birthday-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px 15px;
    gap: 15px;
}

/* Kontener zdjęć */
.birthday-photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.birthday-photo-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(174, 128, 47, 0.3);
    border: 3px solid #AE802F;
    background: white;
}

.birthday-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Dla wielu osób - mniejsze zdjęcia */
.birthday-photos:has(.birthday-photo-wrapper:nth-child(2)) .birthday-photo-wrapper {
    width: 70px;
    height: 70px;
}

.birthday-photos:has(.birthday-photo-wrapper:nth-child(3)) .birthday-photo-wrapper {
    width: 65px;
    height: 65px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SEKCJA TEKSTOWA
   ═══════════════════════════════════════════════════════════════════════════ */

.birthday-text {
    text-align: center;
    width: 100%;
}

.birthday-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.birthday-message {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.birthday-role {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
    font-style: italic;
}

/* Wiele osób - lista imion */
.birthday-multi-names {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.birthday-multi-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER Z PRZYCISKIEM
   ═══════════════════════════════════════════════════════════════════════════ */

.birthday-notification .notification-footer {
    padding: 0 15px 15px;
}

.birthday-notification .notification-btn-primary {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #AE802F 0%, #FFEFA7 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.birthday-notification .notification-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(174, 128, 47, 0.4);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSYWNOŚĆ MOBILNA
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .notification-birthday-content {
        padding: 15px 10px 10px;
        gap: 12px;
    }

    .birthday-photo-wrapper {
        width: 65px;
        height: 65px;
        border-width: 2px;
    }

    /* Dla wielu osób na mobilnych */
    .birthday-photos:has(.birthday-photo-wrapper:nth-child(2)) .birthday-photo-wrapper {
        width: 55px;
        height: 55px;
    }

    .birthday-photos:has(.birthday-photo-wrapper:nth-child(3)) .birthday-photo-wrapper {
        width: 50px;
        height: 50px;
    }

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

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

    .birthday-role {
        font-size: 0.75rem;
    }

    .birthday-multi-name {
        font-size: 0.9rem;
    }

    .birthday-notification .notification-header {
        padding: 8px 12px;
    }

    .birthday-notification .notification-badge {
        font-size: 0.7rem;
    }

    .birthday-notification .notification-footer {
        padding: 0 10px 10px;
    }

    .birthday-notification .notification-btn-primary {
        padding: 8px;
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMACJE I EFEKTY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Delikatna pulsacja dla zdjęć */
@keyframes birthdayPhotoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.birthday-photo-wrapper {
    animation: birthdayPhotoPulse 2s ease-in-out infinite;
}

/* Animacja pojawienia się (dziedziczy z notification) */
.birthday-notification {
    animation: slideInNotification 0.4s ease forwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPECJALNE PRZYPADKI
   ═══════════════════════════════════════════════════════════════════════════ */

/* Więcej niż 3 osoby - układ w 2 rzędach */
.birthday-photos:has(.birthday-photo-wrapper:nth-child(4)) {
    max-width: 100%;
}

.birthday-photos:has(.birthday-photo-wrapper:nth-child(5)) .birthday-photo-wrapper {
    width: 55px;
    height: 55px;
}

/* Na mobilnych dla więcej niż 3 osób - jeszcze mniejsze */
@media (max-width: 768px) {
    .birthday-photos:has(.birthday-photo-wrapper:nth-child(4)) .birthday-photo-wrapper {
        width: 45px;
        height: 45px;
    }

    .birthday-photos:has(.birthday-photo-wrapper:nth-child(5)) .birthday-photo-wrapper {
        width: 40px;
        height: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE (opcjonalnie, jeśli w przyszłości)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    /* Możesz dodać dark mode w przyszłości jeśli będzie potrzebny */
    /* .birthday-notification {
        background-color: #2a2a2a;
    } */
}
