/* style.css - Clean Premium CSS for Mindskill Technologies */

/* CSS Variables */
:root {
    --background: #f7f8f5;
    --foreground: #17212b;
    --surface: #ffffff;
    --surface-muted: #edf1ec;
    --border: #d9dfd7;
    --ink-soft: #5c6870;
    
    --color-primary: #1c2d3d;
    --color-primary-hover: #121f2c;
    --color-secondary: #c85c36;
    --color-secondary-hover: #af4826;
    --color-accent: #d8ad45;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Dark Mode Variables */
html.dark {
    --background: #09151e;
    --foreground: #f5f7f2;
    --surface: #0f2332;
    --surface-muted: #152e42;
    --border: #223d54;
    --ink-soft: #bdc9c2;
}

/* Core Styles */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6, .text-heading {
    font-family: var(--font-heading);
}

.eyebrow {
    color: var(--color-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Grid & Layout Utilities */
.site-container {
    width: min(100% - 2rem, 76rem);
    margin-inline: auto;
}

.grid {
    display: grid;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pb-7 { padding-bottom: 1.75rem; }
.pb-12 { padding-bottom: 3rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-7 { padding-top: 1.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-0.5 { margin-right: 0.125rem; }
.mx-0.5 { margin-left: 0.125rem; margin-right: 0.125rem; }

.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border { border: 1px solid var(--border); }

/* Custom Component Layouts */
.glass-panel {
    background-color: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(23, 33, 43, 0.04);
}
html.dark .glass-panel {
    box-shadow: none;
}
.shadow-soft {
    box-shadow: 0 20px 55px rgba(23, 33, 43, 0.08);
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.text-center { text-align: center; }
.italic { font-style: italic; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-loose { line-height: 2; }

.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/55 { color: rgba(255, 255, 255, 0.55); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 6px;
    padding: 0.625rem 1rem;
    min-height: 2.5rem;
}
.btn-primary {
    background-color: #1c2d3d !important;
    color: #ffffff !important;
    border: 1px solid #1c2d3d !important;
}
.btn-primary:hover {
    background-color: #121f2c !important;
    border-color: #121f2c !important;
}
.btn-secondary {
    background-color: #1c2d3d !important;
    color: #ffffff !important;
    border: 1px solid #1c2d3d !important;
}
.btn-secondary:hover {
    background-color: #121f2c !important;
    border-color: #121f2c !important;
}
.btn-ghost {
    background-color: transparent;
    color: #1c2d3d;
}
.btn-ghost:hover {
    background-color: var(--surface-muted);
}
.btn-outline {
    border: 1px solid #1c2d3d !important;
    background-color: transparent !important;
    color: #1c2d3d !important;
}
.btn-outline:hover {
    background-color: #1c2d3d !important;
    color: #ffffff !important;
}
html.dark .btn-outline {
    border-color: #ffffff !important;
    color: #ffffff !important;
}
html.dark .btn-outline:hover {
    background-color: #ffffff !important;
    color: #1c2d3d !important;
}
.btn-white {
    background-color: #ffffff;
    color: #1c2d3d !important;
}
.btn-white:hover {
    background-color: var(--background);
}

/* Backgrounds & Colors */
.bg-white { background-color: #ffffff; }
html.dark .dark\:bg-white { background-color: #ffffff; }
.bg-[#09151e] { background-color: #09151e; }
.bg-transparent { background-color: transparent; }
.text-white { color: #ffffff !important; }
.text-\[\#09151e\] { color: #09151e; }
.text-\[\#c85c36\] { color: #c85c36; }
.text-\[\#f2c85b\] { color: #f2c85b; }
.text-\[\#d8ad45\] { color: #d8ad45; }
.text-\[color\:var\(--ink-soft\)\] { color: var(--ink-soft); }
.text-red-500 { color: #ef4444; }
.text-green-500 { color: #22c55e; }

/* Responsive Media Queries */
@media (min-width: 640px) {
    .sm\:text-7xl { font-size: 4.5rem; }
    .sm\:text-6xl { font-size: 3.75rem; }
    .sm\:text-4xl { font-size: 2.25rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-end { align-items: flex-end; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-\[1\.5fr_1fr_1fr\] { grid-template-columns: 1.5fr 1fr 1fr; }
    .md\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-\[1\.15fr_\.85fr\] { grid-template-columns: 1.15fr 0.85fr; }
    .lg\:grid-cols-\[1\.1fr_\.9fr\] { grid-template-columns: 1.1fr 0.9fr; }
    .lg\:grid-cols-\[\.8fr_1\.2fr\] { grid-template-columns: 0.8fr 1.2fr; }
    .lg\:grid-cols-\[\.7fr_1\.3fr\] { grid-template-columns: 0.7fr 1.3fr; }
    .lg\:pl-10 { padding-left: 2.5rem; }
    .lg\:items-end { align-items: flex-end; }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Specific Page layouts */
.shrink-0 { flex-shrink: 0; }
.overflow-x-clip { overflow-x: clip; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.h-full { height: 100%; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }
.flex-1 { flex: 1 1 0%; }
.rounded-md { border-radius: 6px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-full { width: 100%; }
.place-items-center { place-items: center; }
.opacity-80 { opacity: 0.8; }
.opacity-60 { opacity: 0.6; }
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.pointer-events-none { pointer-events: none; }
.absolute { position: absolute; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.w-24 { width: 6rem; }
.bg-gradient-to-r { background: linear-gradient(to right, var(--surface), transparent); }
.bg-gradient-to-l { background: linear-gradient(to left, var(--surface), transparent); }
.border-l-0 { border-left: 0; }

@media (min-width: 1024px) {
    .lg\:border-l { border-left: 1px solid var(--border); }
    .lg\:border-t-0 { border-top: 0; }
    .lg\:pt-0 { padding-top: 0; }
}

/* Client Marquee Logo Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* ContentPage article borders */
.article-card {
    border-top: 1px solid var(--border);
    padding-block: 1.75rem;
}
@media (min-width: 768px) {
    .article-card:nth-child(2) {
        border-top: 0;
    }
}

/* Form Styles */
input, textarea, select {
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--surface-muted);
    color: var(--foreground);
    padding: 0.75rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--color-primary);
}
label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Admin Dashboard styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 4.5rem);
}
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
.dashboard-sidebar {
    background-color: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
}
.dashboard-content {
    padding: 2rem;
}
.dashboard-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.dashboard-card .value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Logos & Icons */
.logo-icon {
    display: inline-flex;
    align-items: center;
}
