/* Propaganda Pop — Shared CSS Utilities */

/* Retro Halftone Texture Overlay */
.halftone-overlay {
    background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: 0.1;
}

/* Brutalist Drop Block Shadow */
.drop-block {
    box-shadow: 6px 6px 0px 0px #000000;
}

.drop-block-hover:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px 0px #000000;
}

.drop-block-active:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #000000;
}

/* Carbon-Fibre Grain Texture */
.grainy-bg {
    position: relative;
}
.grainy-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Material Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Tilt effect for tags */
.tilt-2 { transform: rotate(-2deg); }

/* Flame Flicker Animation — from HomeMovingLogo template */
@keyframes flame-flicker {
    0%, 100% { opacity: 1;    filter: drop-shadow(0 0 10px rgba(162,5,19,0.60)) brightness(1.00); transform: scale(1.00); }
    20%       { opacity: 0.90; filter: drop-shadow(0 0 15px rgba(162,5,19,0.80)) brightness(1.10); transform: scale(1.02); }
    40%       { opacity: 0.95; filter: drop-shadow(0 0  8px rgba(162,5,19,0.50)) brightness(0.90); transform: scale(0.98); }
    60%       { opacity: 0.85; filter: drop-shadow(0 0 12px rgba(162,5,19,0.70)) brightness(1.05); transform: scale(1.01); }
    80%       { opacity: 0.92; filter: drop-shadow(0 0 18px rgba(162,5,19,0.90)) brightness(1.15); transform: scale(1.03); }
}

.logo-glow {
    filter: drop-shadow(0 0 15px rgba(162, 5, 19, 0.4));
}

.flame-animation {
    animation: flame-flicker 0.15s infinite alternate ease-in-out;
}

/* Nav underline hover effect */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #795900;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Entrance Animations */
@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Breathing/Pulse effect */
@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.02); }
}
.animate-breathing {
    animation: breathing 6s ease-in-out infinite;
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #131313; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #A20513; }

/* Size Selection Modal */
.size-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}
.size-modal.active { display: flex; }

/* Candle glow — organic bottom-up flame pulse for homepage logo */
@keyframes candle-pulse {
    0%   { filter: drop-shadow(0 4px 22px rgba(162,5,19,0.75)) drop-shadow(0 8px 45px rgba(197,160,89,0.40)); }
    30%  { filter: drop-shadow(0 4px 40px rgba(162,5,19,1.00)) drop-shadow(0 8px 70px rgba(197,160,89,0.60)); }
    55%  { filter: drop-shadow(0 4px 12px rgba(162,5,19,0.50)) drop-shadow(0 8px 25px rgba(197,160,89,0.20)); }
    80%  { filter: drop-shadow(0 4px 32px rgba(162,5,19,0.88)) drop-shadow(0 8px 55px rgba(197,160,89,0.50)); }
    100% { filter: drop-shadow(0 4px 22px rgba(162,5,19,0.75)) drop-shadow(0 8px 45px rgba(197,160,89,0.40)); }
}

@keyframes candle-orb {
    0%, 100% { opacity: 0.70; transform: scale(1)    translateY(0px); }
    35%       { opacity: 1.00; transform: scale(1.28) translateY(-10px); }
    65%       { opacity: 0.45; transform: scale(0.88) translateY(5px); }
}

.candle-glow-logo { animation: candle-pulse 2.2s ease-in-out infinite; }
.candle-orb       { animation: candle-orb   2.2s ease-in-out infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-slide-up,
    .animate-breathing,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
