/**
 * random-draw.css - 随便画画功能样式
 */

/* 随便画画按钮 - 闪光版 */
.random-draw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border: 1px solid rgba(255, 200, 100, 0.5);
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.4);
    animation: randomDrawGlow 2s ease-in-out infinite;
}

@keyframes randomDrawGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(230, 126, 34, 0.4), 0 0 20px rgba(230, 126, 34, 0.2);
        border-color: rgba(255, 200, 100, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(230, 126, 34, 0.7), 0 0 40px rgba(255, 180, 50, 0.4), 0 0 60px rgba(230, 126, 34, 0.2);
        border-color: rgba(255, 220, 100, 0.8);
    }
}

.random-draw-btn:hover {
    transform: translateY(-2px);
    animation: none;
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.6), 0 0 30px rgba(255, 180, 50, 0.4);
}

/* 随便画画弹窗 */
.random-draw-modal {
    background: #1a1b1e;
    border-radius: 16px;
    width: 480px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.random-draw-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(211, 84, 0, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.random-draw-modal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.random-draw-modal .modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.random-draw-modal .modal-close-btn:hover {
    background: rgba(255, 77, 79, 0.3);
    color: #ff4d4f;
}

.random-draw-modal .modal-body {
    padding: 20px;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: #2b2c2f;
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    background: #3b3c3f;
    border-color: #e67e22;
    transform: translateY(-2px);
}

.category-btn .category-name {
    font-weight: bold;
}

/* 进度弹窗 */
.random-draw-progress-modal {
    background: #1a1b1e;
    border-radius: 16px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.random-draw-progress-modal .modal-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.2), rgba(13, 138, 106, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.random-draw-progress-modal .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
}

.random-draw-progress-modal .modal-body {
    padding: 25px;
}

/* 结果弹窗 */
.random-draw-result-modal {
    background: #1a1b1e;
    border-radius: 16px;
    width: 500px;
    max-width: 95%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.random-draw-result-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(16, 163, 127, 0.3), rgba(13, 138, 106, 0.3));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.random-draw-result-modal .modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.random-draw-result-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
}

.random-draw-result-img-wrap {
    margin-bottom: 20px;
}

.random-draw-result-img-wrap img {
    max-width: 100%;
    max-height: 50vh;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.random-draw-result-img-wrap img:hover {
    transform: scale(1.02);
}

.random-draw-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.random-draw-result-actions .btn-secondary {
    padding: 12px 24px;
    background: #3b3c3f;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.random-draw-result-actions .btn-secondary:hover {
    background: #4b4c4f;
}

.random-draw-result-actions .btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #e6a23c, #d4940f);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.random-draw-result-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 162, 60, 0.4);
}

/* 加载占位 */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 30px;
}

/* 响应式 */
@media (max-width: 500px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .random-draw-result-actions {
        flex-direction: column;
    }
}

