.advent-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.advent-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .advent-calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .advent-calendar-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.advent-door {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #3fa9f5 0%, #61ce70 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.advent-door.clickable {
    cursor: pointer;
}

.advent-door.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.advent-door.past {
    background: linear-gradient(135deg, #d53976 0%, #61ce70 100%);
    cursor: pointer;
}

.advent-door.today {
    background: linear-gradient(135deg, #61ce70 0%, #3fa9f5 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 8px 20px rgba(97, 206, 112, 0.6);
    }
}

.advent-door.future {
    background: linear-gradient(135deg, #a8a8a8 0%, #7e7e7e 100%);
     
}

.advent-door.no-content {
    background: linear-gradient(135deg, #d3d3d3 0%, #b0b0b0 100%);
     
}

.door-number {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.door-number span {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.door-closed {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.door-closed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.door-preview {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.door-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.advent-door:hover .door-closed img,
.advent-door:hover .door-preview img {
    transform: scale(1.05);
}

.advent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.advent-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.advent-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

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

.advent-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.advent-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.advent-modal-body {
    padding: 0;
}

.advent-modal-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.advent-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advent-modal-text {
    padding: 30px;
}

.advent-modal-topic {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.advent-modal-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.advent-modal-author {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.advent-modal-teaser {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.advent-modal-link {
    margin-top: 20px;
}

.advent-modal-link a {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.advent-modal-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.advent-modal-form {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.advent-form-intro {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.advent-form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.advent-email-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.advent-email-input:focus {
    outline: none;
    border-color: #3fa9f5;
}

.advent-submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3fa9f5 0%, #61ce70 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.advent-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 169, 245, 0.4);
}

.advent-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.advent-form-privacy {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.advent-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.advent-form-message.success {
    background: rgba(97, 206, 112, 0.15);
    color: #2d7a3a;
    border: 1px solid rgba(97, 206, 112, 0.3);
}

.advent-form-message.error {
    background: rgba(213, 57, 118, 0.15);
    color: #a01d4e;
    border: 1px solid rgba(213, 57, 118, 0.3);
}

.advent-countdown-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #3fa9f5 0%, #d53976 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 10001;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    max-width: 400px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.advent-countdown-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
    .advent-modal-content {
        max-width: 100%;
        margin: 10px;
    }

    .advent-modal-text {
        padding: 20px;
    }

    .advent-modal-title {
        font-size: 1.5rem;
    }

    .door-number span {
        font-size: 2rem;
    }

    .advent-countdown-popup {
        padding: 20px 30px;
        font-size: 1rem;
        max-width: 90%;
    }

    .advent-form-group {
        flex-direction: column;
    }

    .advent-submit-btn {
        width: 100%;
    }

    .advent-modal-form {
        padding: 15px;
    }
}