/* notifications.css - Game Notifications */

.game-notification {
    position: fixed;
    bottom: 9rem;
    top: auto;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(180deg,
        rgba(30, 35, 50, 0.98) 0%,
        rgba(20, 25, 40, 0.98) 100%);
    border: 2px solid rgba(100, 180, 255, 0.4);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;

    box-shadow:
        0 0 30px rgba(100, 180, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.game-notification.attack-success {
    border-color: rgba(100, 255, 150, 0.5);
    background: linear-gradient(180deg,
        rgba(20, 50, 30, 0.98) 0%,
        rgba(15, 40, 25, 0.98) 100%);
    box-shadow: 0 0 30px rgba(100, 255, 150, 0.2);
}

.game-notification.attack-fail {
    border-color: rgba(255, 100, 100, 0.5);
    background: linear-gradient(180deg,
        rgba(50, 20, 20, 0.98) 0%,
        rgba(40, 15, 15, 0.98) 100%);
    box-shadow: 0 0 30px rgba(255, 100, 100, 0.2);
}

.game-notification.attack-cooldown {
    border-color: rgba(255, 180, 100, 0.5);
    background: linear-gradient(180deg,
        rgba(50, 40, 20, 0.98) 0%,
        rgba(40, 30, 15, 0.98) 100%);
    box-shadow: 0 0 30px rgba(255, 180, 100, 0.2);
}

/* Inactivity Warning */
.inactivity-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: warningPulse 0.5s ease-out;
}

@keyframes warningPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.inactivity-warning-content {
    background: linear-gradient(180deg,
        rgba(80, 60, 20, 0.98) 0%,
        rgba(60, 40, 15, 0.98) 100%);
    border: 3px solid rgba(255, 180, 50, 0.8);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow:
        0 0 40px rgba(255, 180, 50, 0.4),
        0 0 80px rgba(255, 150, 30, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 90vw;
    text-align: center;
}

.inactivity-icon {
    font-size: 3rem;
    animation: iconShake 0.5s ease-in-out infinite;
}

@keyframes iconShake {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.inactivity-text {
    color: white;
    font-family: 'Rajdhani', sans-serif;
}

.inactivity-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.inactivity-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.25rem;
}

.inactivity-hint {
    font-size: 0.95rem;
    color: rgba(255, 200, 100, 0.9);
    font-weight: 600;
}

.inactivity-ok-btn {
    background: linear-gradient(180deg, #ffaa00 0%, #ff8800 100%);
    border: none;
    border-radius: 6px;
    padding: 0.6rem 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 150, 0, 0.3);
}

.inactivity-ok-btn:hover {
    background: linear-gradient(180deg, #ffbb22 0%, #ff9922 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 150, 0, 0.4);
}

.inactivity-warning.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Game Closed Notification */
.game-closed-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    animation: closedSlideIn 0.4s ease-out;
}

@keyframes closedSlideIn {
    0% { transform: translate(-50%, -60%); opacity: 0; }
    100% { transform: translate(-50%, -50%); opacity: 1; }
}

.game-closed-content {
    background: linear-gradient(180deg,
        rgba(60, 30, 30, 0.98) 0%,
        rgba(40, 20, 20, 0.98) 100%);
    border: 3px solid rgba(255, 100, 100, 0.6);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow:
        0 0 40px rgba(255, 100, 100, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 90vw;
    text-align: center;
}

.game-closed-icon {
    font-size: 2.5rem;
}

.game-closed-text {
    color: white;
    font-family: 'Rajdhani', sans-serif;
}

.game-closed-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff6666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.game-closed-message {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.game-closed-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Disconnection Notification */
.disconnection-notification {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.disconnection-notification .notification-content {
    background: linear-gradient(180deg,
        rgba(40, 45, 60, 0.98) 0%,
        rgba(30, 35, 50, 0.98) 100%);
    border: 2px solid rgba(150, 180, 220, 0.4);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow:
        0 0 30px rgba(100, 150, 200, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.disconnection-notification .disconnect-icon {
    font-size: 1.8rem;
}

.disconnection-notification .notification-text {
    color: white;
    font-family: 'Rajdhani', sans-serif;
}

.disconnection-notification .notification-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.disconnection-notification .notification-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.disconnection-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
