/* myApp24 Adventskalender Styles */

.myac-advent-calendar-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
}

.myac-advent-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 900px) {
    .myac-advent-calendar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .myac-advent-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.myac-advent-door {
    cursor: pointer;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background: radial-gradient(circle at top left, #ffecd2, #fcb69f);
    isolation: isolate;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.myac-advent-door-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.myac-advent-door-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.9) contrast(1.05);
    z-index: -2;
}

.myac-advent-door-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 60, 120, 0.7), rgba(200, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.myac-advent-door-number {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.myac-advent-door-lock {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Schneeflocken Deko */

.myac-advent-door::before,
.myac-advent-door::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    z-index: -1;
}

.myac-advent-door::before {
    width: 70%;
    height: 50%;
    top: -10%;
    right: -20%;
    filter: blur(3px);
}

.myac-advent-door::after {
    width: 40%;
    height: 40%;
    bottom: -15%;
    left: -10%;
    filter: blur(4px);
}

.myac-advent-door.myac-door-openable:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.3);
    filter: brightness(1.03);
}

.myac-advent-door.myac-door-locked {
    cursor: default;
    filter: grayscale(0.3) brightness(0.85);
}

.myac-advent-door.myac-door-locked .myac-advent-door-number {
    opacity: 0.7;
}

/* Modal */

.myac-advent-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.myac-advent-modal-open .myac-advent-modal {
    display: flex;
}

.myac-advent-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.myac-advent-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    animation: myac-modal-in 0.2s ease-out;
    z-index: 1;
}

.myac-advent-modal-inner {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 85vh;
}

.myac-advent-modal-title h2,
.myac-advent-modal-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.myac-advent-modal-body {
    font-size: 1rem;
    line-height: 1.6;
}

.myac-advent-modal-close {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    position: absolute;
    top: 0.4rem;
    right: 0.8rem;
    color: #333;
    cursor: pointer;
}

@keyframes myac-modal-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Versteckte Inhalte */

.myac-advent-hidden-content {
    display: none;
}
