@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

:root {
    --primary-magenta: #ff00ff;
    --dark-magenta: #b300b3;
    --neon-cyan: #00f3ff;
    --bg-dark: rgba(10, 0, 10, 0.95);
}

body {
    margin: 0;
    padding: 0;
    background-color: transparent;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#alert-container {
    position: relative;
    width: 700px;
    background: var(--bg-dark);
    border: 2px solid var(--primary-magenta);
    box-shadow: 0 0 15px var(--primary-magenta), inset 0 0 20px rgba(255, 0, 255, 0.2);
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: stretch;
    clip-path: polygon(
        0% 0%, 
        100% 0%, 
        100% 85%, 
        95% 100%, 
        0% 100%
    ); /* Angular "Tech" shape */
    opacity: 0; /* Hidden by default */
}

/* The left accent bar */
.accent-bar {
    width: 15px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-magenta),
        var(--primary-magenta) 10px,
        var(--dark-magenta) 10px,
        var(--dark-magenta) 20px
    );
    box-shadow: 0 0 10px var(--primary-magenta);
}

.alert-content-wrapper {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Grid Pattern */
.alert-content-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 0, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
}

.alert-text {
    position: relative;
    z-index: 2;
    width: 100%;
}

.alert-header {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 42px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 0px var(--primary-magenta);
    margin: 0;
    line-height: 1;
    position: relative;
}

.alert-message {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: var(--primary-magenta);
    margin-top: 10px;
    font-weight: 700;
    text-shadow: 0 0 5px var(--primary-magenta);
}

/* Glitch Animation for Text */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 81px, 0); }
    5% { clip: rect(74px, 9999px, 86px, 0); }
    10% { clip: rect(10px, 9999px, 68px, 0); }
    15% { clip: rect(3px, 9999px, 14px, 0); }
    20% { clip: rect(64px, 9999px, 20px, 0); }
    100% { clip: rect(27px, 9999px, 50px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(59px, 9999px, 7px, 0); }
    5% { clip: rect(21px, 9999px, 56px, 0); }
    10% { clip: rect(40px, 9999px, 26px, 0); }
    15% { clip: rect(85px, 9999px, 95px, 0); }
    20% { clip: rect(2px, 9999px, 34px, 0); }
    100% { clip: rect(69px, 9999px, 13px, 0); }
}

/* Specific Event Colors */
.type-tip {
    border-color: #00ff00; /* Green for money */
    box-shadow: 0 0 15px #00ff00;
}
.type-tip .accent-bar {
    background: repeating-linear-gradient(45deg, #00ff00, #00ff00 10px, #006600 10px, #006600 20px);
}
.type-tip .alert-message { color: #00ff00; text-shadow: 0 0 5px #00ff00; }
.type-tip .alert-header { text-shadow: 2px 2px 0px #00ff00; }
