/* ============================================
   BRUTALIST.CSS - Shared Base Styles
   ============================================ */

/* CSS Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #000000;
    --highlight-color: #f7d794;
    --border-width: 2px;
    --border-radius: 12px;
    --shadow-offset: 4px;
    --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* Reset */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-ui);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-12 { gap: 12px; }

/* ============================================
   Navigation
   ============================================ */
nav {
    border-bottom: var(--border-width) solid var(--text-color);
    padding: 1.5rem;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-decoration: none;
    color: black;
    border: var(--border-width) solid black;
    border-radius: var(--border-radius);
    padding: 5px 10px;
    
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    background: #fff;
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--text-color);
    transition: all 0.1s;
    font-family: var(--font-mono);
    text-decoration: none;
    display: inline-block;
}
.btn:active {
    box-shadow: 0px 0px 0px var(--text-color);
    transform: translate(var(--shadow-offset), var(--shadow-offset));
    background-color: var(--bg-color);
    color: var(--text-color);
}
.btn-primary {
    background-color: var(--text-color);
    color: var(--bg-color);
}
.btn-danger {
    background-color: #fff;
    color: var(--text-color);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-small {
    border: 2px solid black;
    border-radius: 8px;
    background: white;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* ============================================
   Form Elements
   ============================================ */
input[type="text"],
input[type="password"],
input[type="url"],
input[type="file"] {
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--border-radius);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    width: 100%;
    background: white;
}
input:focus {
    background-color: #f0f0f0;
}

/* ============================================
   Layout
   ============================================ */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* ============================================
   Cards
   ============================================ */
.card {
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--border-radius);
    background: #fff;
    padding: 1.5rem;
    margin-bottom: 24px;
}
.card-header {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    text-transform: uppercase;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    background: black;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.protected-badge {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-left: 6px;
    border-radius: 6px;
}

/* ============================================
   Notifications
   ============================================ */
.notification {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: #fff;
}
.notification.error { background: #ffe6e6; }
.notification.success { background: #e7ffe7; }

.error-box {
    border: var(--border-width) solid var(--text-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ============================================
   Items List
   ============================================ */
.item {
    border: 2px solid #000;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
}
.item-info {
    flex: 1;
}
.item-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 4px;
}
.item-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #555;
}
.item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-state {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 24px;
    color: #777;
    border: 2px dashed #999;
    border-radius: 10px;
    background: #fafafa;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-bar {
    border: 2px solid #000;
    border-radius: 10px;
    background: #f1f2f6;
    position: relative;
    height: 28px;
    overflow: hidden;
}
.progress-bar-fill {
    background: #000;
    height: 100%;
    width: 0;
    transition: width 0.3s ease;
}
.progress-bar-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #fff;
    mix-blend-mode: difference;
}

/* ============================================
   Footer
   ============================================ */
footer {
    text-align: center;
    padding: 2rem;
    border-top: var(--border-width) solid black;
    margin-top: auto;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================================
   Helper Text
   ============================================ */
.helper-text {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #555;
}
