:root {
    --color-bg: #ffffff;
    --color-text: #0f172a;
    --color-primary: #dc2626;
    --color-secondary: #f8fafc;
    --color-border: #cbd5e1;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--color-text); background-color: var(--color-bg); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Logo */
.hero-logo { margin-bottom: 2rem; }
.logo-img { height: 180px; width: auto; display: block; margin: 0 auto; object-fit: contain; }

/* Titles */
.hero-title { font-size: 3.5rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 0.5rem; text-transform: uppercase; text-align: center; margin-top: 3rem; }
.hero-subtitle { font-family: var(--font-mono); color: #64748b; font-size: 0.9rem; letter-spacing: 1px; text-align: center; margin-bottom: 3rem; }

/* Stats */
.stats-bar { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-secondary); padding: 0.75rem 0; font-family: var(--font-mono); font-size: 0.85rem; }
.stats-content { display: flex; justify-content: center; gap: 3rem; }
.stat-value { font-weight: 700; margin-left: 5px; }

/* Search & Buttons */
.search-wrapper { display: flex; gap: 10px; margin-bottom: 3rem; max-width: 900px; margin-left: auto; margin-right: auto; padding-top: 3rem; }
.action-btn, .search-input, .filter-select { height: 50px; border-radius: 4px; border: 1px solid var(--color-border); font-family: var(--font-mono); font-size: 0.9rem; }

.action-btn { background: var(--color-primary); color: white; padding: 0 1.5rem; font-weight: 700; border: none; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.action-btn:hover { background: #b91c1c; }
.input-wrapper { flex: 1; position: relative; }
.search-icon { position: absolute; left: 15px; top: 15px; color: #94a3b8; }
.search-input { width: 100%; padding-left: 45px; }
.search-input:focus, .filter-select:focus { outline: 2px solid var(--color-primary); border-color: transparent; }

/* Grid & Cards */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; }
.tool-card { border: 1px solid var(--color-border); border-radius: 6px; padding: 1.5rem; background: white; display: flex; flex-direction: column; transition: all 0.2s; }
.tool-card:hover { border-color: var(--color-primary); transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; }
.card-title { font-weight: 800; font-size: 1.25rem; }
.card-category { font-family: var(--font-mono); font-size: 0.7rem; background: #fef2f2; color: var(--color-primary); padding: 3px 8px; border: 1px solid #fca5a5; border-radius: 4px; text-transform: uppercase; }
.card-description { color: #475569; font-size: 0.95rem; margin-bottom: 1.5rem; flex: 1; }
.card-footer { border-top: 1px solid var(--color-secondary); padding-top: 15px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.card-author { font-size: 0.75rem; color: #94a3b8; font-family: var(--font-mono); font-weight: 600; }
.btn-link { display: inline-flex; align-items: center; gap: 5px; background: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); padding: 5px 12px; font-size: 0.75rem; font-weight: 700; border-radius: 4px; text-decoration: none; font-family: var(--font-mono); text-transform: uppercase; transition: all 0.2s; }
.btn-link:hover { background: var(--color-primary); color: white; }

/* MODAL STYLES */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); display: none; justify-content: center; align-items: center; z-index: 999; }
.modal-overlay.active { display: flex; }
.modal { background: white; padding: 2rem; width: 100%; max-width: 500px; border-radius: 6px; border-top: 5px solid var(--color-primary); animation: slideIn 0.3s ease; }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #64748b; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.85rem; }
.form-input, .form-textarea { width: 100%; padding: 10px; border: 1px solid var(--color-border); border-radius: 4px; font-family: var(--font-mono); }
.btn-submit { width: 100%; background: var(--color-primary); color: white; padding: 12px; border: none; font-weight: bold; cursor: pointer; font-family: var(--font-mono); border-radius: 4px; }
.btn-submit:hover { background: #b91c1c; }
.btn-submit:disabled { opacity: 0.7; cursor: wait; }

/* Footer */
.footer { border-top: 1px solid var(--color-border); padding: 2rem 0; margin-top: 4rem; text-align: center; font-size: 0.9rem; color: #64748b; }
.brand-red { color: var(--color-primary); font-weight: 700; }
.dev-name { color: #0f172a; font-weight: 600; }
.separator { margin: 0 10px; color: #cbd5e1; }
.empty-state { text-align: center; padding: 3rem; font-family: var(--font-mono); color: #64748b; }
