/* === Paper Design System === */
/* Based on "Caveat", "Shadows Into Light", "Reenie Beanie" */

:root {
    --paper-black: #050607;
    --chalk: #f7f7f5;
    --muted-chalk: #d7d7d6;
    --sketch-width: 2.4px;
    
    /* Brand Colors (Hand-drawn style) */
    --brand-blue: #00c3ff;
    --brand-purple: #8b5cf6;
    --brand-red: #ff3c3c;
}

html,
body {
    height: 100%;
    background: var(--paper-black);
    margin: 0;
    color: var(--chalk);
    font-family: 'Caveat', 'Shadows Into Light', 'Reenie Beanie', cursive;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
}

a {
    color: var(--chalk);
    text-decoration: none;
    transition: all 0.2s;
}

/* Utilities */
.hand-font {
    font-family: 'Caveat', cursive;
}

.scribble-border {
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    position: relative;
    background: transparent;
}

.scribble-border::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    border: 2px dashed rgba(255, 255, 255, 0.09);
    transform: rotate(-2.4deg);
    filter: blur(0.3px);
    opacity: 0.8;
    pointer-events: none;
}

.scribble-border::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transform: rotate(1.6deg);
    opacity: 0.6;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border: 3px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--chalk);
    transform: rotate(-2deg);
    font-family: 'Caveat', cursive;
    text-align: center;
    transition: 0.2s;
}

.btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-3px) rotate(-1deg);
    color: #fff;
}

.btn-primary {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}
.btn-primary:hover {
    border-color: #fff;
    background: rgba(0, 195, 255, 0.1);
}

.btn-danger {
    border-color: var(--brand-red);
    color: var(--brand-red);
}
.btn-danger:hover {
    background: rgba(255, 60, 60, 0.1);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    color: var(--chalk);
    font-size: 1.2rem;
    font-family: 'Caveat', cursive;
    transition: all 0.2s;
    box-sizing: border-box;
    transform: rotate(0.5deg);
}

input:focus {
    outline: none;
    border-color: var(--chalk);
    transform: rotate(0deg) scale(1.01);
}

label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--muted-chalk);
}

/* Cards / Boxes */
.sketch-box {
    padding: 1.5rem;
    border: 3px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transform: rotate(-1deg);
    background: rgba(255,255,255,0.02);
}

/* Flash Messages */
.flash-messages {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}
.flash-message {
    padding: 1rem;
    border: 2px dashed rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transform: rotate(-0.5deg);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 6, 7, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 0;
    z-index: 1000;
}

.header-content {
    max-width: 1150px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-link {
    font-size: 1.3rem;
    color: var(--muted-chalk);
    padding: 0.5rem 1rem;
}
.nav-link:hover {
    color: var(--chalk);
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted-chalk);
    margin-top: auto;
}

/* ======================
   PROFILE FRAMES
   ====================== */
.frame-blue {
    border: 3px solid var(--brand-blue) !important;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}
.frame-purple {
    border: 3px solid var(--brand-purple) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}
.frame-gradient {
    border: 3px solid transparent !important;
    background: linear-gradient(var(--paper-black), var(--paper-black)) padding-box, 
                linear-gradient(45deg, var(--brand-blue), var(--brand-purple)) border-box;
}
.frame-neon {
    border: 3px solid #00ff88 !important;
    box-shadow: 0 0 10px #00ff88, inset 0 0 10px #00ff88;
    animation: neonPulse 2s ease-in-out infinite alternate;
}
@keyframes neonPulse {
    from { box-shadow: 0 0 10px #00ff88, inset 0 0 10px #00ff88; }
    to { box-shadow: 0 0 20px #00ff88, inset 0 0 20px #00ff88; }
}
.frame-sparkle {
    border: 3px solid #ffd700 !important;
    position: relative;
}
.frame-sparkle::after {
    content: '?';
    position: absolute;
    top: -10px; right: -10px;
}
