@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Caveat:wght@400;700&family=Special+Elite&family=Allura&display=swap');

/* Font Classes */
.font-stencil { 
    font-family: 'Black Ops One', system-ui; 
}

.font-typewriter { 
    font-family: 'Special Elite', monospace; 
}

.font-handwriting { 
    font-family: 'Caveat', cursive; 
}

.font-signature { 
    font-family: 'Allura', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Colonial Theme Textures */
.bg-bunker-colonial {
    background-color: #1a1a1a;
    background-image: radial-gradient(circle at 50% 0%, #333 0%, #111 80%), 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

.paper-colonial {
    background-color: #e8ddcb;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.1' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    box-shadow: 2px 3px 6px rgba(0,0,0,0.4), inset 0 0 20px rgba(139, 69, 19, 0.1);
    color: #1a1a1a;
}

.folder-colonial {
    background-color: #e6c280;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    border: 1px solid #c4a05e;
    box-shadow: 3px 4px 8px rgba(0,0,0,0.5);
    color: #2c2219;
}

.header-bg-colonial {
    background-color: #2a231d;
    border-color: #1a1511;
}

.header-icon-colonial {
    background-color: #15803d;
    border-color: #14532d;
    color: #052e16;
}

.header-text-colonial {
    color: #22c55e;
}

/* Warden Theme Textures */
.bg-bunker-warden {
    background-color: #11141a;
    background-image: radial-gradient(circle at 50% 0%, #2a3546 0%, #0d1117 80%), 
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.1'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

.paper-warden {
    background-color: #d1d8e0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    box-shadow: 2px 3px 6px rgba(0,0,0,0.5), inset 0 0 20px rgba(44, 62, 80, 0.1);
    color: #12161a;
}

.folder-warden {
    background-color: #8da4b8;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    border: 1px solid #6b8296;
    box-shadow: 3px 4px 8px rgba(0,0,0,0.6);
    color: #1a232b;
}

.header-bg-warden {
    background-color: #1c2533;
    border-color: #0f141c;
}

.header-icon-warden {
    background-color: #2563eb;
    border-color: #1e40af;
    color: #1e3a8a;
}

.header-text-warden {
    color: #60a5fa;
}

/* Universal Shared */
.paper-dark {
    background-color: #2b3036;
    color: #e0e0e0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 1px 2px 4px rgba(0,0,0,0.5);
}

.tape {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
    z-index: 10;
    width: 4rem;
    height: 1.5rem;
}

.photo-sepia { 
    filter: sepia(0.8) contrast(1.2) brightness(0.9); 
}

.photo-cold { 
    filter: grayscale(0.6) contrast(1.2) brightness(1.1) hue-rotate(200deg); 
}

/* Scrollbar Styling */
::-webkit-scrollbar { 
    width: 10px; 
}

::-webkit-scrollbar-track { 
    background: #1a1a1a; 
}

::-webkit-scrollbar-thumb { 
    background: #4a4a4a; 
    border: 1px solid #1a1a1a; 
}

/* Utility Classes */
.lined-paper {
    background-image: repeating-linear-gradient(
        transparent, 
        transparent 31px, 
        rgba(0,0,0,0.1) 31px, 
        rgba(0,0,0,0.1) 32px
    );
    line-height: 32px;
}

.status-dot-online {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #16a34a;
    margin-right: 0.25rem;
}

.status-dot-offline {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #dc2626;
    margin-right: 0.25rem;
}

/* Transition helpers */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* War Status Panel */
.war-status-panel {
    font-family: 'Special Elite', monospace;
}

.war-status-panel .font-mono {
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
}

/* Pulse animation for active war indicator */
@keyframes war-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.war-status-panel .animate-pulse {
    animation: war-pulse 2s ease-in-out infinite;
}

/* Casualty counter styling */
.war-status-panel .text-red-800\/80 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Post rotation */
.rotate-slight-left {
    transform: rotate(-1deg);
}

.rotate-slight-right {
    transform: rotate(1deg);
}

/* Hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Sticky note */
.sticky-note {
    background-color: #f9f5a4;
    padding: 1rem;
    position: relative;
    transform: rotate(-3deg);
    box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
}

.sticky-note:hover {
    transform: rotate(0deg);
}
