/* =========================================
   TechCorp Custom CSS Framework
   ========================================= */

/* Theme variables */
:root 
{
    --bg-color: #ffffff;
    --text-color: #000000;
    --nav-bg: #f3f4f6;
    --card-bg: #e5e7eb;
    --footer-color: #6b7280;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --success-hover: #15803d;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
}

[data-theme="dark"] 
{
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --nav-bg: #111827;
    --card-bg: #1f2937;
    --footer-color: #9ca3af;
}

/* Global */
body 
{
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 
{
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p 
{
    line-height: 1.6;
    margin-bottom: 1em;
}

/* Navigation */
nav 
{
    background-color: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}
nav a 
{
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.2s ease;
}
nav a:hover 
{
    color: var(--primary);
}

/* Buttons */
button, .btn 
{
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover, .btn:hover 
{
    transform: scale(1.05);
}

.btn-primary 
{
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
}
.btn-primary:hover 
{
    background-color: var(--primary-hover);
}

.btn-success 
{
    background-color: var(--success);
    color: #fff;
    padding: 0.5rem 1rem;
}
.btn-success:hover 
{
    background-color: var(--success-hover);
}

.btn-danger 
{
    background-color: var(--danger);
    color: #fff;
    padding: 0.5rem 1rem;
}
.btn-danger:hover 
{
    background-color: var(--danger-hover);
}

/* Cards */
.card 
{
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: transform 0.2s ease;
}
.card:hover 
{
    transform: translateY(-2px);
}

/* Footer */
footer 
{
    font-size: 0.875rem;
    color: var(--footer-color);
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Utility classes (Tailwind-like) */

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }
.text-gray { color: #9ca3af; }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }

/* Rounded */
.rounded { border-radius: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Transition */
.transition { transition: all 0.2s ease; }