/* Shahzad Farooq - Custom Styles (Compiled from Tailwind v4) */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #f4f4f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #ffffff;
    color: #000000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background-color: #18181b;
}

::-webkit-scrollbar-thumb {
    background-color: #3f3f46;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #52525b;
}

/* Animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #d4d4d8, #71717a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gradient-subtle {
    background: linear-gradient(to right, #f4f4f5, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.font-display {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.code-text {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    background-color: #18181b;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #27272a;
}

/* Container Utilities */
.container-narrow {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.container-wide {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Section Utilities */
.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-sm {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }

    .section-sm {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.writing-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Card Utilities */
.card {
    background-color: rgba(24, 24, 27, 0.5);
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: #3f3f46;
    background-color: rgba(24, 24, 27, 0.8);
}

.card-elevated {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.card-interactive {
    background-color: rgba(24, 24, 27, 0.5);
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-interactive:hover {
    border-color: #52525b;
    transform: translateY(-4px);
}

.glass {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Button Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    outline: none;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #e4e4e7;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #000000, 0 0 0 4px #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: #18181b;
    color: #ffffff;
    border: 1px solid #3f3f46;
}

.btn-secondary:hover {
    background-color: #27272a;
    border-color: #52525b;
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 2px #000000, 0 0 0 4px #71717a;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: transparent;
    color: #d4d4d8;
}

.btn-ghost:hover {
    color: #ffffff;
    background-color: #18181b;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #3f3f46;
}

.btn-outline:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Form Utilities */
.form-input {
    width: 100%;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #71717a;
}

.form-input:focus {
    outline: none;
    border-color: #52525b;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}

/* Navigation */
.nav-link {
    color: #a1a1aa;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-active {
    color: #ffffff;
}

.nav-link-active::after {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-default {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: #27272a;
    color: #d4d4d8;
    border: 1px solid #3f3f46;
}

.badge-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: #ffffff;
    color: #000000;
}

.badge-success {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Dividers */
.divider {
    border-top: 1px solid #27272a;
}

.divider-gradient {
    height: 1px;
    background: linear-gradient(to right, transparent, #3f3f46, transparent);
}

/* Background Patterns */
.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-gradient {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.1), transparent);
}

/* ============================================
   Prose Styles - Typography for Blog & Legal Pages
   Works with Tailwind CDN (no plugin required)
   ============================================ */

.prose-dark {
    color: #d4d4d8;
    line-height: 1.8;
    font-size: 1.125rem;
}

/* Headings */
.prose-dark h1 {
    color: #ffffff;
    font-weight: 700;
    font-size: 2.25rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.prose-dark h2 {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #27272a;
}

.prose-dark h3 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.375rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose-dark h4 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose-dark h5 {
    color: #e4e4e7;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose-dark h6 {
    color: #d4d4d8;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs */
.prose-dark p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

/* Links */
.prose-dark a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.prose-dark a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Strong and Emphasis */
.prose-dark strong {
    color: #ffffff;
    font-weight: 600;
}

.prose-dark em {
    font-style: italic;
    color: #e4e4e7;
}

/* Lists */
.prose-dark ul {
    list-style-type: disc;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.prose-dark ol {
    list-style-type: decimal;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.prose-dark li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
    padding-left: 0.375rem;
}

.prose-dark li::marker {
    color: #71717a;
}

.prose-dark ul ul,
.prose-dark ul ol,
.prose-dark ol ul,
.prose-dark ol ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Blockquotes */
.prose-dark blockquote {
    font-style: italic;
    color: #a1a1aa;
    border-left: 4px solid #3f3f46;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    quotes: "\201C""\201D""\2018""\2019";
}

.prose-dark blockquote p {
    margin-bottom: 0;
}

/* Code - Inline */
.prose-dark code {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.875em;
    color: #e4e4e7;
    background-color: #27272a;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    border: 1px solid #3f3f46;
    font-weight: 500;
}

/* Code - Blocks */
.prose-dark pre {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.7;
}

.prose-dark pre code {
    background-color: transparent;
    border: none;
    padding: 0;
    font-weight: inherit;
    color: #d4d4d8;
    font-size: inherit;
    border-radius: 0;
}

/* Horizontal Rules */
.prose-dark hr {
    border: none;
    border-top: 1px solid #27272a;
    margin: 3rem 0;
}

/* Tables */
.prose-dark table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.prose-dark thead {
    border-bottom: 2px solid #3f3f46;
}

.prose-dark thead th {
    color: #ffffff;
    font-weight: 600;
    vertical-align: bottom;
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose-dark tbody tr {
    border-bottom: 1px solid #27272a;
}

.prose-dark tbody td {
    vertical-align: top;
    padding: 0.75rem 1rem;
}

/* Images */
.prose-dark img {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

.prose-dark figure {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.prose-dark figcaption {
    color: #71717a;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Keyboard */
.prose-dark kbd {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.875em;
    color: #ffffff;
    background-color: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 0.25rem;
    padding: 0.15em 0.4em;
    box-shadow: 0 2px 0 0 #3f3f46;
}

/* Mark/Highlight */
.prose-dark mark {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 0.125em 0.25em;
    border-radius: 0.125rem;
}

/* Delete and Insert */
.prose-dark del {
    color: #71717a;
    text-decoration: line-through;
}

.prose-dark ins {
    color: #4ade80;
    text-decoration: none;
    border-bottom: 1px solid #4ade80;
}

/* Details and Summary */
.prose-dark details {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
}

.prose-dark summary {
    cursor: pointer;
    font-weight: 600;
    color: #ffffff;
}

/* Definition Lists */
.prose-dark dt {
    color: #ffffff;
    font-weight: 600;
    margin-top: 1.25rem;
}

.prose-dark dd {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* First element - no top margin */
.prose-dark > :first-child {
    margin-top: 0;
}

/* Last element - no bottom margin */
.prose-dark > :last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .prose-dark {
        font-size: 1.125rem;
    }

    .prose-dark h1 {
        font-size: 2.5rem;
    }

    .prose-dark h2 {
        font-size: 2rem;
    }

    .prose-dark h3 {
        font-size: 1.5rem;
    }
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Focus Ring */
.focus-ring:focus-visible {
    box-shadow: 0 0 0 2px #000000, 0 0 0 4px #ffffff;
}

/* Animations */
.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
}

/* Terminal Decorations */
.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.terminal-dots span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.terminal-dots span:nth-child(1) { background-color: #ef4444; }
.terminal-dots span:nth-child(2) { background-color: #f59e0b; }
.terminal-dots span:nth-child(3) { background-color: #22c55e; }

.cursor-blink::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #ffffff;
    margin-left: 0.25rem;
}
