/* peteITcms Adventskalender CSS */

.peteitcms-advent-container {
    background: #111b21;
    border-radius: 12px;
    padding: 30px;
    max-width: 1400px;
    margin: 20px auto;
    color: #e9edef;
}

.peteitcms-advent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #202c33;
}

.peteitcms-advent-header h2 {
    color: #00a884;
    margin: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.peteitcms-advent-header h2 i {
    color: #00a884;
}

.peteitcms-advent-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-icon-round {
    background: #00a884;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-round:hover {
    background: #06cf9c;
    transform: scale(1.1);
}

.peteitcms-advent-balance {
    background: #202c33;
    padding: 10px 20px;
    border-radius: 25px;
    color: #00a884;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Adventskalender Grid */
.advent-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .advent-calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Türchen */
.advent-door {
    background: #202c33;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.advent-door:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(192, 57, 43, 0.5),
                0 0 20px rgba(255, 215, 0, 0.3);
}

.advent-door.locked {
    opacity: 0.6;
}

.advent-door.future {
    opacity: 0.3;
    cursor: not-allowed;
}

.advent-door.future:hover {
    transform: none;
    box-shadow: none;
}

.advent-door.locked-sequence {
    opacity: 0.5;
    cursor: not-allowed;
}

.advent-door.locked-sequence:hover {
    transform: none;
    box-shadow: none;
}

.advent-door.unlocked {
    border: 2px solid #00a884;
}

.advent-door.empty {
    background: #1a2329;
    border: 2px dashed #2a3942;
    cursor: default;
}

.advent-door.empty:hover {
    transform: none;
    box-shadow: none;
}

.door-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #00a884;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 168, 132, 0.6);
    border: 3px solid white;
}

.door-number.future {
    background: #8a96a0;
    border-color: #e9edef;
}

.door-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a2329 0%, #2c1810 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.door-cover::before {
    content: '🎄';
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 30px;
    opacity: 0.2;
    animation: tree-sway 4s ease-in-out infinite;
}

.door-cover::after {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.3;
    animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes tree-sway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.door-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.door-number-large {
    font-size: 180px;
    font-weight: 900;
    color: rgba(192, 57, 43, 0.15);
    text-shadow: 0 0 50px rgba(231, 76, 60, 0.3),
                 0 0 20px rgba(255, 215, 0, 0.2);
    letter-spacing: -10px;
}

.door-cover .default-icon {
    font-size: 60px;
    color: #2a3942;
}

.door-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.door-lock-overlay.sequence-lock {
    background: rgba(0, 0, 0, 0.85);
}

.sequence-message {
    color: #00a884;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    padding: 0 10px;
}

.door-lock-icon {
    font-size: 50px;
    color: #8696a0;
}

.door-info {
    padding: 15px;
}

.door-content-type {
    color: #00a884;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.door-author {
    color: #8696a0;
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.door-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
}

.door-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.door-price {
    color: #00a884;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.door-unlocked-badge {
    background: #00a884;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.door-actions {
    display: flex !important;
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    justify-content: center;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

.btn-door-action {
    background: #00a884 !important;
    border: none;
    color: #fff !important;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-door-action:hover {
    background: rgba(0, 168, 132, 0.8) !important;
    transform: scale(1.1);
}

.btn-door-action.delete {
    background: #ff4444 !important;
    color: #fff !important;
}

.btn-door-action.delete:hover {
    background: rgba(255, 68, 68, 0.8) !important;
}

.empty-door-content {
    padding: 40px 20px;
    text-align: center;
}

.empty-door-icon {
    font-size: 50px;
    color: #2a3942;
    margin-bottom: 10px;
}

.empty-door-text {
    color: #8696a0;
    font-size: 14px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #202c33;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #111b21;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #e9edef;
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: #00a884;
}

.modal-close {
    background: none;
    border: none;
    color: #8696a0;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #111b21;
    color: #e9edef;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e9edef;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #00a884;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #111b21;
    border: 1px solid #2a3942;
    border-radius: 8px;
    color: #e9edef;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-info {
    background: #111b21;
    border: 2px dashed #2a3942;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.file-upload-info:hover {
    border-color: #00a884;
    background: #1a2329;
}

.file-upload-info i {
    font-size: 40px;
    color: #00a884;
    display: block;
    margin-bottom: 10px;
}

.file-upload-info span {
    color: #8696a0;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.4);
}

.btn-submit:disabled {
    background: #2a3942;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Door Details Modal */
.door-details-content {
    max-width: 700px;
}

.door-detail-cover {
    width: 100%;
    height: 350px;
    background: #111b21;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
}

.door-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.door-detail-info {
    margin-bottom: 20px;
}

.door-detail-description {
    color: #8696a0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.door-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #111b21;
    border-radius: 8px;
}

.door-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8696a0;
    font-size: 14px;
}

.door-detail-meta-item i {
    color: #00a884;
}

.door-detail-meta-item strong {
    color: #e9edef;
}

.btn-unlock-door {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-unlock-door:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 132, 0.5);
}

.btn-download {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 132, 0.5);
    color: white !important;
}

.already-unlocked-badge {
    background: #00a884;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.coins-received-info {
    background: linear-gradient(135deg, #00a884 0%, #06cf9c 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.coins-received-info i {
    font-size: 40px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #2a3942;
    border-top: 4px solid #00a884;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.success-message {
    background: rgba(0, 168, 132, 0.2);
    color: #00a884;
    border: 1px solid #00a884;
}

.error-message {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

/* Responsive */
@media (max-width: 768px) {
    .peteitcms-advent-container {
        padding: 20px;
    }
    
    .peteitcms-advent-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .door-cover {
        height: 150px;
    }
}
