/**
 * Casino Özel Hata Modalı
 * Ekranı tamamen kaplayan, dramatik hata gösterimi
 */

.casino-error-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999999 !important;
    background: linear-gradient(135deg, 
        rgba(139, 0, 0, 0.98) 0%, 
        rgba(20, 20, 20, 0.98) 50%, 
        rgba(139, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    animation: overlayFadeIn 0.4s ease-out;
    overflow: hidden;
}

.casino-error-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Animated Background Pattern */
.casino-error-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(255, 0, 0, 0.03) 50px,
        rgba(255, 0, 0, 0.03) 100px
    );
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

/* Warning Icon Container */
.casino-error-icon-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 40px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Rotating Warning Circle */
.casino-error-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 5px solid rgba(255, 50, 50, 0.3);
    border-top-color: #ff3232;
    border-radius: 50%;
    animation: circleRotate 1.5s linear infinite;
}

@keyframes circleRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Warning Icon */
.casino-error-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: #ff3232;
    text-shadow: 
        0 0 30px rgba(255, 50, 50, 0.8),
        0 0 60px rgba(255, 50, 50, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.5);
    animation: iconBounce 0.6s ease-out;
    z-index: 2;
}

@keyframes iconBounce {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-180deg);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Error Content Box */
.casino-error-content {
    background: linear-gradient(135deg, 
        rgba(20, 20, 20, 0.95) 0%, 
        rgba(40, 20, 20, 0.95) 100%);
    border: 3px solid #ff3232;
    border-radius: 30px;
    padding: 50px 60px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 30px 90px rgba(255, 50, 50, 0.5),
        0 0 100px rgba(255, 50, 50, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    animation: contentSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    overflow: hidden;
}

@keyframes contentSlideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Glowing Border Effect */
.casino-error-content::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(
        45deg,
        #ff3232,
        #ff6b6b,
        #ff3232,
        #ff6b6b
    );
    border-radius: 30px;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.6;
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        filter: blur(15px);
    }
}

/* Error Title */
.casino-error-title {
    font-size: 42px;
    font-weight: 900;
    color: #ff3232;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        0 0 20px rgba(255, 50, 50, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.5);
    animation: titleShake 0.5s ease-out 0.3s both;
}

@keyframes titleShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Error Message */
.casino-error-message {
    font-size: 20px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 40px 0;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: messageFadeIn 0.6s ease-out 0.5s both;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* Divider Line */
.casino-error-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #ff3232,
        transparent
    );
    margin: 30px 0;
    animation: dividerExpand 0.8s ease-out 0.6s both;
}

@keyframes dividerExpand {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Close Button */
.casino-error-close-btn {
    background: linear-gradient(135deg, #ff3232 0%, #c41e1e 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(255, 50, 50, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: buttonSlideIn 0.5s ease-out 0.7s both;
}

@keyframes buttonSlideIn {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.casino-error-close-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.casino-error-close-btn:hover::before {
    width: 300px;
    height: 300px;
}

.casino-error-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 40px rgba(255, 50, 50, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.casino-error-close-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 5px 20px rgba(255, 50, 50, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.casino-error-close-btn i {
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

.casino-error-close-btn span {
    position: relative;
    z-index: 1;
}

/* Floating Particles Effect */
.casino-error-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 50, 50, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .casino-error-icon-container {
        width: 150px;
        height: 150px;
        margin-bottom: 30px;
    }
    
    .casino-error-circle {
        width: 130px;
        height: 130px;
    }
    
    .casino-error-icon {
        font-size: 70px;
    }
    
    .casino-error-content {
        padding: 40px 30px;
        border-radius: 20px;
    }
    
    .casino-error-title {
        font-size: 28px;
        letter-spacing: 2px;
        margin-bottom: 20px;
    }
    
    .casino-error-message {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .casino-error-close-btn {
        padding: 15px 40px;
        font-size: 16px;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .casino-error-icon-container {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .casino-error-circle {
        width: 100px;
        height: 100px;
    }
    
    .casino-error-icon {
        font-size: 50px;
    }
    
    .casino-error-content {
        padding: 30px 20px;
    }
    
    .casino-error-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .casino-error-message {
        font-size: 14px;
    }
    
    .casino-error-close-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

