@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@900&display=swap');

:root {
    --dark-bg: #0A0A0A;
    --card-bg: #1A1A1A;
    --border: #2A2A2A;
    --accent-red: #DC143C;
    --accent-pink: #FF1744;
    --text-primary: #E0E0E0;
    --text-secondary: #999;
    --success: #2ECC40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    /* Prevent pull-to-refresh on mobile */
    overscroll-behavior-y: contain;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120vw;
    max-width: 1200px;
    height: 120vh;
    background: url('images/demon.png') no-repeat center top;
    background-size: contain;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    filter: contrast(1.1);
}

/* Fire Alert for Duplicates - Beautiful Modal */
@keyframes fireFlicker {
    0%, 100% {
        text-shadow:
            0 0 30px #ff0000,
            0 0 60px #ff4500,
            0 0 90px #ff6347,
            0 0 120px #ff0000;
        transform: scale(1);
    }
    50% {
        text-shadow:
            0 0 40px #ff0000,
            0 0 80px #ff4500,
            0 0 110px #ff6347,
            0 0 150px #ff0000;
        transform: scale(1.05);
    }
}

@keyframes fireBackground {
    0% { background: radial-gradient(circle at center, #FF0000, #8B0000, #000); }
    25% { background: radial-gradient(circle at center, #FF4500, #DC143C, #000); }
    50% { background: radial-gradient(circle at center, #FF6347, #FF0000, #000); }
    75% { background: radial-gradient(circle at center, #DC143C, #8B0000, #000); }
    100% { background: radial-gradient(circle at center, #FF0000, #8B0000, #000); }
}

@keyframes hellFire {
    0% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-5px) scale(1.1); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-3px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.hell-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hell-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, #FF0000, #8B0000, #000);
    animation: fireBackground 3s infinite;
    padding: 50px 60px;
    border-radius: 20px;
    border: 5px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 100px rgba(255, 0, 0, 0.9),
        0 0 200px rgba(255, 69, 0, 0.7),
        inset 0 0 50px rgba(255, 215, 0, 0.3);
    z-index: 10000;
    text-align: center;
    min-width: 400px;
    position: relative;
    overflow: hidden;
}

.hell-alert::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #FFD700, #FF0000, #FFD700, #FF4500);
    border-radius: 20px;
    z-index: -1;
    animation: fireBackground 2s infinite;
}

.hell-alert h1 {
    color: #FFD700;
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fireFlicker 1.5s infinite;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hell-alert p {
    color: #FFF;
    font-size: 1.4rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-weight: 300;
}

.hell-alert .fire-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.hell-alert .fire-emoji {
    font-size: 4rem;
    animation: hellFire 1s infinite;
    filter: drop-shadow(0 0 20px rgba(255, 69, 0, 0.9));
}

.hell-alert .fire-emoji:nth-child(2) {
    animation-delay: 0.3s;
}

.hell-alert .fire-emoji:nth-child(3) {
    animation-delay: 0.6s;
}

.hell-alert button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #8B0000;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.hell-alert button:hover {
    background: linear-gradient(45deg, #FFF, #FFD700);
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.8);
}

/* DIABOLIC TITLE WITH BLOOD TEARS */
.diabolic-title {
    position: relative;
    display: inline-block;
    font-family: 'Georgia', serif;
    letter-spacing: 3px;
    margin: 0 auto;
    text-align: center;
}

.diabolic-title span {
    position: relative;
    display: inline-block;
    color: #DC143C;
    text-shadow:
        0 0 10px rgba(220, 20, 60, 0.8),
        0 0 20px rgba(139, 0, 0, 0.6),
        2px 2px 4px #000;
}

/* Blood tears from specific letters - continuous flow */
.diabolic-title .letter-d::after,
.diabolic-title .letter-m::after,
.diabolic-title .letter-s::after,
.diabolic-title .letter-r::after,
.diabolic-title .letter-a::after,
.diabolic-title .letter-e3::after,
.diabolic-title .letter-h::after,
.diabolic-title .letter-m2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 35px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(139, 0, 0, 0.9) 10%,
        rgba(220, 20, 60, 0.8) 30%,
        rgba(255, 0, 0, 0.6) 60%,
        rgba(139, 0, 0, 0.3) 90%,
        transparent 100%);
    border-radius: 50%;
    animation: bloodFlow 3s linear infinite;
    opacity: 0;
}

.diabolic-title .letter-d::after {
    animation-delay: 0s;
}

.diabolic-title .letter-m::after {
    animation-delay: 0.4s;
}

.diabolic-title .letter-s::after {
    animation-delay: 0.8s;
}

.diabolic-title .letter-r::after {
    animation-delay: 1.2s;
}

.diabolic-title .letter-a::after {
    animation-delay: 1.6s;
}

.diabolic-title .letter-e3::after {
    animation-delay: 2s;
}

.diabolic-title .letter-h::after {
    animation-delay: 2.4s;
}

.diabolic-title .letter-m2::after {
    animation-delay: 2.8s;
}

@keyframes bloodFlow {
    0% {
        transform: translateX(-50%) translateY(-5px);
        opacity: 0;
    }
    10% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0.9;
    }
    90% {
        transform: translateX(-50%) translateY(30px);
        opacity: 0.3;
    }
    100% {
        transform: translateX(-50%) translateY(40px);
        opacity: 0;
    }
}

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

/* Word wrapper for transformation */
.word-wrapper {
    position: relative;
    display: inline-block;
}

.word-registrar,
.word-theythem {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.word-theythem {
    position: absolute;
    left: 0;
    opacity: 0;
    transform: scale(0.8) rotateX(90deg);
    transform-origin: center;
}

/* Default state - show original text */
.original-text {
    display: inline-block;
    position: relative;
}

.glitch-text {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100px;
    opacity: 0;
    display: block;
    pointer-events: none;
    z-index: 999;
}

/* Pronoun bounce animation */
@keyframes pronounBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-5px);
    }
    75% {
        transform: translateY(5px);
    }
}

/* Hover glitch transformation effect - only on text hover */
.main-title:hover .original-text {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(2px);
    transition: all 0.3s ease-out;
}

.main-title:hover .glitch-text {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.main-title:hover .glitch-text .pronoun {
    animation: pronounBounce 2s ease-in-out infinite, glitchColors 3s ease-in-out infinite;
}

.diabolic-title:hover .glitch-text .pronoun:nth-child(odd) {
    animation-delay: 0.1s;
}

.diabolic-title:hover .glitch-text .pronoun:nth-child(even) {
    animation-delay: 0.3s;
}

@keyframes glitchColors {
    0%, 100% {
        color: #DC143C;
        filter: none;
    }
    20% {
        color: #FF0000;
        filter: brightness(1.2) contrast(1.5);
    }
    40% {
        color: #8B0000;
        filter: brightness(0.8) saturate(2);
    }
    60% {
        color: #FF1744;
        filter: brightness(1.5) contrast(1.2);
    }
    80% {
        color: #B22222;
        filter: brightness(1.1) saturate(1.8);
    }
}

@keyframes hoverTimer {
    0%, 99% {
        pointer-events: auto;
    }
    100% {
        pointer-events: none;
    }
}

@keyframes fadeOutGlitch {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: none;
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) skewX(5deg);
        filter: blur(1px) hue-rotate(90deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) skewX(-5deg);
        filter: blur(2px);
    }
}

@keyframes fadeInGlitch {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8) skewY(5deg);
        filter: blur(3px);
    }
    10% {
        opacity: 0.3;
        transform: translateX(-48%) scale(0.9) skewY(-5deg);
        filter: blur(2px) hue-rotate(180deg);
    }
    20% {
        opacity: 0.6;
        transform: translateX(-52%) scale(1.05) skewX(3deg);
        filter: blur(1px) saturate(3);
    }
    30% {
        opacity: 0.8;
        transform: translateX(-49%) scale(0.95) skewX(-3deg);
        filter: contrast(2) brightness(1.5);
    }
    40% {
        opacity: 1;
        transform: translateX(-51%) scale(1.02);
        filter: hue-rotate(-90deg);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        filter: none;
    }
    60% {
        transform: translateX(-50%) skewX(2deg);
        filter: hue-rotate(45deg);
    }
    70% {
        transform: translateX(-50%) skewX(-2deg);
        filter: contrast(1.5);
    }
    80% {
        transform: translateX(-50%) scale(1.01);
        filter: brightness(1.2);
    }
    90% {
        opacity: 0.5;
        transform: translateX(-50%) scale(0.98);
        filter: blur(0.5px);
    }
    95% {
        opacity: 0.2;
        transform: translateX(-50%) scale(0.95) skewY(3deg);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.9) skewY(-3deg);
        filter: blur(2px);
    }
}

@keyframes individualGlitch {
    0%, 100% {
        transform: translateY(0);
    }
    10% {
        transform: translateY(-2px);
    }
    20% {
        transform: translateY(2px) scaleY(1.1);
    }
    30% {
        transform: translateY(-1px) scaleX(1.1);
    }
    40% {
        transform: translateY(1px) rotate(1deg);
    }
    50% {
        transform: translateY(0) rotate(-1deg);
    }
    60% {
        transform: translateY(-2px) scaleX(0.9);
    }
    70% {
        transform: translateY(2px) scaleY(0.9);
    }
    80% {
        transform: translateY(-1px);
    }
    90% {
        transform: translateY(1px);
    }
}

/* Remove hover - return to normal */
.main-title:not(:hover) .original-text {
    opacity: 1;
    transform: none;
    filter: none;
    transition: all 0.3s ease-out;
}

.main-title:not(:hover) .glitch-text {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

@keyframes demonGlitch {
    0%, 100% {
        transform: translateX(0);
        filter: none;
    }
    10% {
        transform: translateX(-2px);
        filter: hue-rotate(90deg) saturate(3);
    }
    20% {
        transform: translateX(2px);
        filter: hue-rotate(-90deg) saturate(3);
    }
    30% {
        transform: translateX(-1px) skewX(2deg);
        filter: contrast(2) brightness(1.5);
    }
    40% {
        transform: translateX(1px) skewX(-2deg);
        filter: hue-rotate(180deg);
    }
    50% {
        transform: translateX(-2px);
        filter: brightness(2) contrast(1.5);
    }
    60% {
        transform: translateX(2px);
        filter: hue-rotate(-180deg) saturate(2);
    }
    70% {
        transform: translateX(-1px);
        filter: contrast(3);
    }
    80% {
        transform: translateX(1px);
        filter: brightness(1.5);
    }
    90% {
        transform: translateX(0);
        filter: hue-rotate(45deg);
    }
}

@keyframes glitchOut {
    0% {
        opacity: 1;
        transform: translateX(0);
        filter: none;
    }
    5% {
        opacity: 1;
        transform: translateX(-3px);
        filter: hue-rotate(90deg) saturate(3);
    }
    10% {
        opacity: 1;
        transform: translateX(3px) scaleX(1.1);
        filter: hue-rotate(-90deg) saturate(3);
    }
    15% {
        opacity: 0.9;
        transform: translateX(-2px) scaleY(0.95);
        filter: contrast(2) brightness(2);
    }
    20% {
        opacity: 0.8;
        transform: translateX(2px) skewX(5deg);
        filter: blur(0.5px) brightness(2.5);
    }
    30% {
        opacity: 0.7;
        transform: translateX(-1px) skewX(-5deg);
        filter: hue-rotate(180deg);
    }
    40% {
        opacity: 0.6;
        transform: translateX(1px) scaleX(0.9);
        filter: blur(1px) brightness(2);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-2px) scaleY(0.8);
        filter: contrast(3) brightness(1.5);
    }
    60% {
        opacity: 0.4;
        transform: translateX(2px) skewX(3deg);
        filter: blur(1.5px) hue-rotate(-90deg);
    }
    70% {
        opacity: 0.3;
        transform: translateX(-1px) scale(0.85);
        filter: brightness(3);
    }
    80% {
        opacity: 0.2;
        transform: translateX(1px) skewX(-3deg);
        filter: blur(2px) contrast(2);
    }
    90% {
        opacity: 0.1;
        transform: translateX(0) scale(0.8);
        filter: blur(2.5px) brightness(2);
    }
    100% {
        opacity: 0;
        transform: translateX(0) scale(0.75);
        filter: blur(3px);
    }
}

@keyframes glitchIn {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.75) rotateX(90deg);
        filter: blur(3px);
    }
    5% {
        opacity: 0.1;
        transform: translateX(3px) scale(0.8) rotateX(80deg);
        filter: hue-rotate(180deg) saturate(3) blur(2.5px);
    }
    10% {
        opacity: 0.2;
        transform: translateX(-3px) scale(0.85) rotateX(70deg);
        filter: hue-rotate(-180deg) saturate(3) blur(2px);
    }
    15% {
        opacity: 0.3;
        transform: translateX(2px) scale(0.9) rotateX(60deg);
        filter: contrast(2) brightness(2) blur(1.5px);
    }
    20% {
        opacity: 0.4;
        transform: translateX(-2px) scale(0.92) rotateX(50deg);
        filter: hue-rotate(90deg) blur(1px);
    }
    30% {
        opacity: 0.5;
        transform: translateX(1px) scale(0.95) rotateX(40deg);
        filter: brightness(2.5) contrast(1.5);
    }
    40% {
        opacity: 0.6;
        transform: translateX(-1px) scale(0.97) rotateX(30deg);
        filter: hue-rotate(-90deg) saturate(2);
    }
    50% {
        opacity: 0.7;
        transform: translateX(2px) scale(0.98) rotateX(25deg);
        filter: contrast(2) brightness(1.8);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-2px) scale(0.99) rotateX(20deg);
        filter: brightness(1.6) blur(0.5px);
    }
    70% {
        opacity: 0.85;
        transform: translateX(1px) scale(1) rotateX(15deg);
        filter: hue-rotate(45deg);
    }
    80% {
        opacity: 0.9;
        transform: translateX(-1px) scale(1.01) rotateX(10deg);
        filter: brightness(1.3);
    }
    90% {
        opacity: 0.95;
        transform: translateX(0) scale(1.02) rotateX(5deg);
        filter: contrast(1.2);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateX(0);
        filter: none;
    }
}

/* Hover effect for diabolic title */
.diabolic-title:hover span {
    color: #FF0000;
    text-shadow:
        0 0 15px rgba(255, 0, 0, 1),
        0 0 30px rgba(139, 0, 0, 0.8),
        3px 3px 6px #000;
}


/* COMPACT HEADER - FINAL VERSION */
.main-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(26, 26, 26, 0.5) 100%);
    border-bottom: 2px solid var(--accent-red);
    backdrop-filter: blur(3px);
    position: relative;
    z-index: 1;
    min-height: 300px;  /* Slightly narrower header */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LOGO MARE - 280px */
.header-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: 280px;
    width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.5));
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: translateY(-50%) scale(1.05);
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;  /* Reduced gap */
    text-align: center;
    width: 100%;
}

.main-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    display: inline-block;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--text-primary);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(220, 20, 60, 0.3);
    margin-bottom: 10px;  /* Reduced margin */
}

/* Icon Actions */
.header-actions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-top: 0;  /* Icons moved up */
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.action-icon {
    font-size: 3rem;
    color: var(--accent-pink);
    margin-bottom: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.action-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.2;
}

.action-item:hover .action-icon {
    color: var(--accent-red);
    transform: scale(1.1);
}

.action-item:hover .action-text {
    color: var(--text-primary);
}

/* SEARCH SECTION */
.search-section {
    background: var(--card-bg);
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: var(--dark-bg);
    border: 2px solid var(--accent-pink);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 18px;
}

.search-field:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
}

.close-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-red);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.search-info {
    text-align: center;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* FILTERS BAR */
.filters-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 16px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
    color: white;
    transform: translateY(-2px);
}

/* INPUT */
.input-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

.input-group {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.input-field {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 16px;
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.submit-btn {
    padding: 12px 30px;
    background: var(--accent-pink);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

/* MOSAIC LAYOUT */
.posts-mosaic {
    column-count: 3;
    column-gap: 20px;
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    break-inside: avoid;
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
    border-color: var(--accent-red);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.demon-badge {
    background: var(--accent-red);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tweet-content {
    margin: 15px 0;
}

.twitter-tweet {
    margin: 0 !important;
}

/* ERROR MESSAGES */
.error {
    color: #FF6B6B;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* LOADING */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Tweet embed container */
.tweet-embed-container {
    min-height: 150px;
    transition: all 0.3s ease;
}

.tweet-embed-container .twitter-tweet {
    margin: 0 !important;
}

/* Smooth tweet loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tweet-embed-container iframe {
    animation: fadeIn 0.5s ease;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(220, 20, 60, 0);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(220, 20, 60, 0.8);
    }
}

.hidden {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .posts-mosaic {
        column-count: 2;
    }
    .main-title {
        font-size: 2.5rem;
    }
}

/* COMPREHENSIVE MOBILE STYLES */
@media (max-width: 768px) {
    /* Reset body for mobile */
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    /* Header Mobile Layout */
    .main-header {
        min-height: auto !important;
        padding: 15px 10px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.9) 100%);
    }

    /* Logo even bigger on mobile */
    .header-logo {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        height: 100px !important;
        width: 100px !important;
        margin-right: 15px;
        flex-shrink: 0;
        filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.6));
    }

    .header-logo:hover {
        transform: scale(1.05) !important;
    }

    /* Header center takes remaining space */
    .header-center {
        flex: 1;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    /* Stack DEMONS and REGISTRAR vertically */
    .main-title {
        font-size: 2rem !important;
        letter-spacing: 3px;
        margin-bottom: 15px;
        text-align: center;
        line-height: 1.3;
        width: 100%;
        font-weight: 900;
    }

    .word-demons,
    .word-registrar {
        display: block;
        text-align: center;
    }

    /* Icons horizontal below title */
    .header-actions {
        flex-direction: row;
        gap: 40px;
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .action-item {
        min-width: auto;
        transition: transform 0.2s ease;
    }

    .action-item:active {
        transform: scale(0.95);
    }

    .action-icon {
        font-size: 2.5rem;
        height: 40px;
        margin-bottom: 5px;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }

    .action-text {
        font-size: 0.7rem;
        line-height: 1.2;
        font-weight: 600;
    }

    /* Hide glitch text on mobile */
    .glitch-text {
        display: none !important;
    }

    /* Posts in 1 column on mobile */
    .posts-mosaic {
        column-count: 1 !important;
        column-gap: 0;
        padding: 15px 10px;
        margin: 15px 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .demon-card {
        margin-bottom: 20px;
        break-inside: avoid;
        width: 100%;
        box-sizing: border-box;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        transition: transform 0.2s ease;
    }

    .demon-card:active {
        transform: scale(0.98);
    }

    /* Fix tweet embeds on mobile */
    .tweet-embed-container {
        max-width: 100%;
        overflow: hidden;
    }

    .twitter-tweet {
        max-width: 100% !important;
    }

    .twitter-tweet iframe {
        max-width: 100% !important;
    }

    /* Filters */
    .filters-bar {
        padding: 12px 10px;
        gap: 8px;
        overflow-x: auto;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
        justify-content: space-around;
        background: rgba(26, 26, 26, 0.95);
    }

    .filter-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
        white-space: nowrap;
        border-radius: 20px;
        transition: all 0.2s ease;
        font-weight: 600;
    }

    .filter-btn:active {
        transform: scale(0.95);
    }

    /* Search section - better mobile */
    .search-section {
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .search-container {
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
        position: relative;
    }

    .search-field {
        font-size: 16px;
        padding: 12px 45px 12px 15px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 25px;
    }

    .close-search {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    /* Input section */
    .input-container {
        padding: 10px;
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .input-group {
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Modal fixes */
    .demon-modal-content {
        width: 95%;
        padding: 20px;
    }

    .hell-alert {
        width: 90%;
        padding: 30px 20px;
        min-width: auto;
    }

    /* Search info text */
    .search-info {
        padding: 10px;
        font-size: 0.9rem;
        text-align: center;
    }

    /* Stats */
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.6rem !important;
    }

    .header-logo {
        height: 85px !important;
        width: 85px !important;
        margin-right: 10px;
    }

    .action-icon {
        font-size: 1.5rem;
        height: 30px;
    }

    .action-text {
        font-size: 0.6rem;
    }

    /* Keep single column for very small screens */
    .posts-mosaic {
        column-count: 1 !important;
    }

    .filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .header-actions {
        gap: 15px;
    }
}

/* Demon Modal */
.demon-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.demon-modal-content {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    border: 2px solid var(--accent-red);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 50px rgba(220, 20, 60, 0.5);
    animation: modalAppear 0.3s ease;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.modal-header h2 {
    color: var(--accent-red);
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin: 0;
}

.modal-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--accent-red);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-btn-save {
    flex: 1;
    padding: 12px;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-save:hover {
    background: #B91C3C;
    transform: translateY(-2px);
}

.modal-btn-cancel {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-cancel:hover {
    background: var(--border);
}

/* Demon badge link */
.demon-badge-link {
    text-decoration: none;
    cursor: pointer;
}

.demon-badge-link:hover .demon-badge {
    background: #B91C3C;
    transform: scale(1.05);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Logo Styling */
.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}


@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.8)); }
}











/* Fast Tweet Cards */
.tweet-fast-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    transition: transform 0.2s;
}

.tweet-fast-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 0, 0, 0.6);
}

.tweet-fast {
    color: #fff;
}

.tweet-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.tweet-body {
    margin: 15px 0;
    line-height: 1.5;
}

.tweet-img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.tweet-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    opacity: 0.7;
}

.tweet-stats a {
    color: #ff4444;
    text-decoration: none;
    margin-left: auto;
}

/* Virtual scroll container */
#postsGrid.virtual-scroll {
    overflow-y: auto;
    max-height: 80vh;
}

/* POSTS GRID ALIGNMENT */
.posts-mosaic {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    column-count: 3;
    column-gap: 20px;
}

.posts-mosaic .demon-card {
    break-inside: avoid;
    margin-bottom: 20px;
}
