/* Jobitra Tools Shared CSS - Professional Vanilla Design */

:root {
    --primary-glow: rgba(136, 99, 251, 0.5);
    --bg-main: #050214;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-white: #FFFFFF;
    --text-gray: #E0E0E0;
    --text-secondary: #9ca3af;
    --accent-purple: #8860D0;
    --accent-pink: #FF74A4;
    --border-glass: rgba(255, 255, 255, 0.1);
}

/* Base */
body {
    background-color: var(--bg-main);
    color: var(--text-gray);
    margin: 0;
}

/* Layout & Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing */
.pt-16 { padding-top: 4rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-20 { padding-bottom: 5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Typography */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-extrabold { font-weight: 800; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-white { color: var(--text-white); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }

/* Effects */
.glass-effect {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
}

.gradient-text {
    background: linear-gradient(90deg, #A881FF, #FF74A4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Form Controls */
.form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-glow);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-primary {
    background: linear-gradient(to right, #8860D0, #C1C8E4);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Grid System */
.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)); }
.gap-8 { gap: 2rem; }
.gap-6 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }

@media (min-width: 640px) {
    .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\:flex-row { flex-direction: row; }
}

@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-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }

/* Shadows & Status */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.opacity-0 { opacity: 0; }
.z-10 { z-index: 10; }
.relative { position: relative; }
.transition { transition: all 0.3s ease; }

/* Utilities */
.rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Specific Component Logic */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    cursor: pointer;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--accent-purple);
    background: rgba(136, 99, 251, 0.1);
}

.preview-item {
    position: relative;
    overflow: hidden;
    background: #1f2937;
}

.remove-btn {
    border: none;
    cursor: pointer;
}

/* =========================================
   Global Footer Styles (Fixed)
   ========================================= */
.footer {
    position: relative;
    border-top: 1px solid var(--border-glass);
    padding: 4rem 1.5rem;
    background: #06080d;
    color: var(--text-gray);
    margin-top: 5rem;
    z-index: 10;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer__top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer__logo a {
    color: var(--text-white);
    text-decoration: none;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer__link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer__link:hover {
    color: var(--text-white);
}

.footer__social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__social-link:hover {
    background: var(--accent-purple);
    color: #fff;
    border-color: var(--accent-purple);
}

.footer__bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--bg-card);
    color: var(--text-white);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-white: #0f172a;
    --text-gray: #334155;
    --text-secondary: #64748b;
    --border-glass: rgba(0, 0, 0, 0.1);
    --primary-glow: rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .footer {
    background: #f1f5f9;
}
[data-theme="light"] .footer__nav-link,
[data-theme="light"] .footer__logo a,
[data-theme="light"] .footer__link:hover {
    color: #0f172a;
}
