/* ===========================
   DESIGN-SYSTEM – VARIABLES
=========================== */
:root {
    --primary: #000000;
    --secondary: #d4af37;

    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --info: #3498db;

    --bg: #f7f7f7;
    --text: #222;

    --radius: 8px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: 0.25s ease;
    --max-width: 1200px;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

/* Primary */
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: #333;
}

/* Secondary */
.btn-secondary {
    background: var(--secondary);
    color: white;
}
.btn-secondary:hover {
    background: #b8962f;
}

/* Ghost */
.btn-ghost {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-ghost:hover {
    background: var(--primary);
    color: white;
}

/* Danger */
.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #c0392b;
}

/* Sizes */
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; }

/* ===========================
   FORM ELEMENTS
=========================== */
.input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.25);
    outline: none;
}

label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

/* ===========================
   ALERTS
=========================== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.alert-info {
    background: rgba(52,152,219,0.15);
    border-left: 5px solid var(--info);
}

.alert-success {
    background: rgba(46,204,113,0.15);
    border-left: 5px solid var(--success);
}

.alert-warning {
    background: rgba(241,196,15,0.15);
    border-left: 5px solid var(--warning);
}

.alert-danger {
    background: rgba(231,76,60,0.15);
    border-left: 5px solid var(--danger);
}

/* ===========================
   GRID SYSTEM
=========================== */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   UTILITY CLASSES
=========================== */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }

.w-100 { width: 100%; }

/* ===========================
   CARD COMPONENT
=========================== */
.card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* ===========================
   TABLES
=========================== */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table td, .table th {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
}

/* ===========================
   BADGES
=========================== */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary); color: white; }
.badge-secondary { background: var(--secondary); color: white; }
.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: black; }
.badge-danger { background: var(--danger); color: white; }

/* ===========================
   MODALS (optional)
=========================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
}
