/**
 * お迎え通知画面のスタイル - 園児向けポップデザイン
 */

/* 全体フォント */
.display-page {
    font-family: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
    background: linear-gradient(135deg, #FFD6E8 0%, #C2E9FB 50%, #A1C4FD 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* 背景デコレーション */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    font-size: 3rem;
    animation: float 15s ease-in-out infinite;
    opacity: 0.6;
}

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

.cloud-2 {
    top: 20%;
    right: 15%;
    animation-delay: 5s;
}

.cloud-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 10s;
}

.star {
    position: absolute;
    font-size: 2rem;
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 {
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.star-2 {
    top: 40%;
    left: 15%;
    animation-delay: 1s;
}

.star-3 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.star-4 {
    top: 60%;
    right: 30%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.display-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ヘッダー */
.display-header {
    background: linear-gradient(135deg, #FFB6D9 0%, #FFEAA7 100%);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 5px solid #FF85C0;
    position: relative;
}

.display-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #FF85C0 0px,
        #FF85C0 20px,
        #FFB6D9 20px,
        #FFB6D9 40px,
        #FFEAA7 40px,
        #FFEAA7 60px,
        #A1C4FD 60px,
        #A1C4FD 80px
    );
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

.title-emoji {
    font-size: 2.5rem;
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

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

.display-header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF1493;
    text-shadow: 3px 3px 0 #FFE5F0, 6px 6px 0 rgba(255, 20, 147, 0.2);
    letter-spacing: 0.05em;
}

.header-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    border: 3px solid #FFB6D9;
}

.control-group label {
    font-weight: 700;
    color: #FF1493;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.label-emoji {
    font-size: 1.3rem;
}

.cute-select {
    padding: 0.5rem 1rem;
    border: 2px solid #FFB6D9;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    background: white;
    color: #FF1493;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.cute-select:hover {
    background: #FFF0F8;
    transform: scale(1.05);
}

.cute-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.3);
}

.btn-logout {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA07A 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
}

.btn-logout:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.btn-logout:active {
    transform: translateY(0);
}

/* 通知コンテナ */
.notifications-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 待機中表示 */
.no-notifications {
    text-align: center;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.waiting-animation {
    background: white;
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
    max-width: 600px;
    border: 5px solid #FFB6D9;
}

.waiting-icon {
    font-size: 6rem;
    animation: door-swing 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes door-swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.waiting-text {
    margin-bottom: 2rem;
}

.waiting-main {
    font-size: 2rem;
    font-weight: 800;
    color: #FF1493;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 0 #FFE5F0;
}

.waiting-sub {
    font-size: 1.3rem;
    color: #FF6B9D;
    margin: 0.5rem 0;
    font-weight: 600;
}

.waiting-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    font-size: 1.5rem;
    color: #FF1493;
    animation: dot-bounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-15px);
    }
}

/* 通知カード */
.notification-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5FA 100%);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    border: 5px solid #FFB6D9;
    position: relative;
    animation: card-appear 0.6s ease-out;
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-card::before {
    content: '🎉';
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 3rem;
    animation: spin 10s linear infinite;
}

.notification-card::after {
    content: '🎈';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.notification-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.4);
}

.notification-time {
    font-size: 1rem;
    color: #FF6B9D;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-time::before {
    content: '⏰';
    font-size: 1.2rem;
}

.notification-parent {
    font-size: 1.8rem;
    color: #FF1493;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px dashed #FFB6D9;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-parent::before {
    content: '👨‍👩‍👧‍👦';
    font-size: 2rem;
}

.notification-children {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.child-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #FFF0F8 0%, #FFFAFC 100%);
    border-radius: 20px;
    border: 3px solid #FFD6E8;
    transition: all 0.3s ease;
    position: relative;
}

.child-item::before {
    content: '✨';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

.child-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.3);
}

.child-class {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA07A 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.child-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FF1493;
    text-shadow: 2px 2px 0 #FFE5F0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.child-name::after {
    content: '🌟';
    font-size: 1.5rem;
    animation: twinkle 3s ease-in-out infinite;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .display-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .header-title {
        justify-content: center;
    }

    .display-header h1 {
        font-size: 1.8rem;
    }

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

    .header-controls {
        flex-direction: column;
        gap: 0.75rem;
    }

    .control-group {
        width: 100%;
        justify-content: space-between;
    }

    .cute-select {
        flex: 1;
    }

    .notification-card {
        padding: 1.5rem;
    }

    .notification-parent {
        font-size: 1.4rem;
    }

    .child-name {
        font-size: 1.3rem;
    }

    .waiting-main {
        font-size: 1.5rem;
    }

    .waiting-sub {
        font-size: 1rem;
    }

    .waiting-icon {
        font-size: 4rem;
    }
}

/* タブレット横向き */
@media (min-width: 769px) and (max-width: 1024px) {
    .display-header h1 {
        font-size: 2rem;
    }

    .notification-card {
        max-width: 90%;
    }
}

/* 大画面用 */
@media (min-width: 1200px) {
    .notification-card {
        max-width: 1100px;
    }

    .notifications-container {
        padding: 3rem;
    }
}

/* スクロールバーのカスタマイズ */
.notifications-container::-webkit-scrollbar {
    width: 12px;
}

.notifications-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.notifications-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA07A 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.notifications-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF1493 0%, #FF6347 100%);
}
