/**
 * Adam Hickman Theme - Main Styles
 * Replicates the Lovable React design exactly
 */

/* ========================================
   CSS Custom Properties (Variables)
   ======================================== */
:root {
    /* Colors - matching the React theme */
    --primary: #c9a227;
    --primary-light: #d4b85a;
    --background: #121212;
    --card: #1a1a1a;
    --foreground: #f5f3eb;
    --muted: #8a8578;
    --border: #333333;
    
    /* Font families */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border radius */
    --radius: 0.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 700ms ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

p {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.min-h-screen {
    min-height: 100vh;
}

.min-h-60vh {
    min-height: 60vh;
}

.bg-background {
    background-color: var(--background);
}

.bg-card {
    background-color: var(--card);
}

.bg-primary {
    background-color: var(--primary);
}

.text-foreground {
    color: var(--foreground);
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted);
}

.text-background {
    color: var(--background);
}

.border-border {
    border-color: var(--border);
}

.border-primary {
    border-color: var(--primary);
}

/* Font utilities */
.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}

.font-light {
    font-weight: 300;
}

.font-medium {
    font-weight: 500;
}

/* Text sizes */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.1;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1.1;
}

.text-7xl {
    font-size: 4.5rem;
    line-height: 1.1;
}

/* Tracking */
.tracking-wide {
    letter-spacing: 0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.3em;
}

/* Leading */
.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Text transform */
.uppercase {
    text-transform: uppercase;
}

/* Display */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

/* Flexbox */
.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.shrink-0 {
    flex-shrink: 0;
}

/* Gap */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* Spacing - Padding */
.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

.pl-8 {
    padding-left: 2rem;
}

/* Spacing - Margin */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Width & Height */
.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-7 {
    width: 1.75rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.w-full {
    width: 100%;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-7 {
    height: 1.75rem;
}

.h-8 {
    height: 2rem;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.h-px {
    height: 1px;
}

.h-full {
    height: 100%;
}

/* Max width */
.max-w-lg {
    max-width: 32rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

/* Aspect Ratio */
.aspect-4-5 {
    aspect-ratio: 4 / 5;
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.bottom-6 {
    bottom: 1.5rem;
}

.bottom-10 {
    bottom: 2.5rem;
}

.left-1\/2 {
    left: 50%;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-bottom-4 {
    bottom: -1rem;
}

.-right-4 {
    right: -1rem;
}

.-z-10 {
    z-index: -10;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

/* Overflow */
.overflow-hidden {
    overflow: hidden;
}

/* Border */
.border {
    border-width: 1px;
    border-style: solid;
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-l-2 {
    border-left-width: 2px;
    border-left-style: solid;
}

/* Object fit */
.object-cover {
    object-fit: cover;
}

.object-top {
    object-position: top;
}

/* Filters */
.grayscale {
    filter: grayscale(100%);
}

.grayscale-0,
.hover\:grayscale-0:hover {
    filter: grayscale(0%);
}

/* Opacity */
.opacity-40 {
    opacity: 0.4;
}

.opacity-60 {
    opacity: 0.6;
}

/* Transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

.transition-all {
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.duration-700 {
    transition-duration: 700ms;
}

/* Cursor */
.cursor-pointer {
    cursor: pointer;
}

/* Resize */
.resize-none {
    resize: none;
}

/* Focus */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:border-primary:focus {
    border-color: var(--primary);
}

/* Space between children */
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

/* ========================================
   Gradient Utilities
   ======================================== */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-background {
    --tw-gradient-from: var(--background);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}

.via-transparent {
    --tw-gradient-stops: var(--tw-gradient-from), transparent, var(--tw-gradient-to, transparent);
}

.to-transparent {
    --tw-gradient-to: transparent;
}

/* ========================================
   Hover States
   ======================================== */
.hover\:text-primary:hover {
    color: var(--primary);
}

.hover\:text-foreground:hover {
    color: var(--foreground);
}

.hover\:bg-foreground:hover {
    background-color: var(--foreground);
}

.hover\:border-primary:hover {
    border-color: var(--primary);
}

.hover\:border-foreground:hover {
    border-color: var(--foreground);
}

.hover\:bg-primary:hover {
    background-color: var(--primary);
}

/* Group hover states */
.group:hover .group-hover\:text-primary {
    color: var(--primary);
}

.group:hover .group-hover\:text-background {
    color: var(--background);
}

.group:hover .group-hover\:text-primary-foreground {
    color: var(--background);
}

.group:hover .group-hover\:border-primary {
    border-color: var(--primary);
}

.group:hover .group-hover\:bg-primary {
    background-color: var(--primary);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

/* Elements that animate on scroll - initial state */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Medium screens (md: 768px) */
@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }
    
    .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\:items-start {
        align-items: flex-start;
    }
    
    .md\:justify-between {
        justify-content: space-between;
    }
    
    .md\:gap-8 {
        gap: 2rem;
    }
    
    .md\:gap-20 {
        gap: 5rem;
    }
    
    .md\:text-left {
        text-align: left;
    }
    
    .md\:text-right {
        text-align: right;
    }
    
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1.1;
    }
    
    .md\:px-16 {
        padding-left: 4rem;
        padding-right: 4rem;
    }
    
    .md\:p-10 {
        padding: 2.5rem;
    }
    
    .md\:py-32 {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Small screens (sm: 640px) */
@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Large screens (lg: 1024px) */
@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .lg\:block {
        display: block;
    }
    
    .lg\:hidden {
        display: none;
    }
    
    .lg\:mx-0 {
        margin-left: 0;
        margin-right: 0;
    }
    
    .lg\:ml-auto {
        margin-left: auto;
    }
    
    .lg\:mr-16 {
        margin-right: 4rem;
    }
    
    .lg\:py-0 {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .lg\:px-20 {
        padding-left: 5rem;
        padding-right: 5rem;
    }
    
    .lg\:min-h-screen {
        min-height: 100vh;
    }
    
    .lg\:text-6xl {
        font-size: 3.75rem;
        line-height: 1.1;
    }
    
    .lg\:text-7xl {
        font-size: 4.5rem;
        line-height: 1.1;
    }
    
    .lg\:opacity-40 {
        opacity: 0.4;
    }
}

/* ========================================
   Component Styles
   ======================================== */

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-section .scroll-indicator {
    transition: color var(--transition-normal);
}

/* About Section Image Frame */
#about .relative > div:last-child {
    pointer-events: none;
}

/* Career Items */
.career-item {
    transition: border-color var(--transition-normal);
}

/* Topic Cards & Media Cards */
.topic-item,
.media-item {
    transition: all var(--transition-slow);
}

.topic-item .topic-icon,
.media-item .media-icon,
.publication-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-slow);
}

/* Publication Cards */
.publication-item {
    transition: border-color var(--transition-slow);
}

/* Contact Form Styles */
#contact-form input,
#contact-form textarea {
    transition: border-color var(--transition-normal);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

#form-message.success {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

#form-message.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.footer {
    border-color: var(--border);
}

/* ========================================
   WordPress Admin Bar Fix
   ======================================== */
body.admin-bar .hero-section {
    min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .hero-section {
        min-height: calc(100vh - 46px);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .scroll-indicator,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-card {
        background: #f5f5f5;
    }
    
    .text-primary {
        color: #8b7620;
    }
}
