/**
 * Card Games - Shared Modal Styles
 * Common modal styling used across all solitaire games
 */

/* Win and Rules Overlay */
.win-overlay,
.rules-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal, 1000);
}

.win-overlay.show,
.rules-overlay.show {
    display: flex;
}

/* Modal Content Base */
.win-message,
.rules-content {
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 30px;
    animation: modalPopIn 0.3s ease-out;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

@keyframes modalPopIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rules-content {
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.win-message {
    text-align: center;
    padding: 40px 60px;
}

.win-message h2,
.rules-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.win-message p {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Rules modal close button */
.rules-content button {
    display: block;
    width: 100%;
    padding: 12px 30px;
    background: var(--button-bg);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}

.rules-content button:hover {
    background: var(--button-hover);
}
