/* Design Tokens (Inherited from Kit) */
:root {
    /* Monochrome Theme with Red Accent */
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-accent: #FF0000;
    --color-white: #FFFFFF;

    /* Comic Book Specifics */
    --border-thick: 4px solid #000000;
    --shadow-hard: 8px 8px 0px #000000;
    --shadow-sm: 4px 4px 0px #000000;

    /* Typography */
    --font-heading: 'Lacquer', display;
    --font-body: 'Lacquer', display;
}

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f0f0f0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    /* Halftone */
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #fff;
    border-bottom: var(--border-thick);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    text-transform: uppercase;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    text-transform: uppercase;
}

.nav-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: 3px solid #000;
    background: transparent;
    font-family: var(--font-heading);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
    /* Optional, but fits the style */
}

.btn-sm {
    padding: 10px 20px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.btn-outline {
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    background: #000;
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.hero-content {
    background: #fff;
    border: var(--border-thick);
    padding: 60px;
    box-shadow: var(--shadow-hard);
    max-width: 900px;
    transform: rotate(-1deg);
}

.hero-title {
    font-size: 80px;
    line-height: 0.9;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px #ccc;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
    /* Maybe keep Inter for readability on subtitles? Or Lacquer as requested? User said "everything on this page should be that font". I'll stick to Lacquer for now to be safe, but Inter is imported. */
    font-family: var(--font-body);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ========================================= */
/* MERGED STYLES FROM home/styles.css        */
/* ========================================= */

/* Design Tokens */
:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-accent: #FF0000;
    --border-thick: 3px solid #000000;
    --shadow-hard: 4px 4px 0px #000000;
    --font-primary: 'Lacquer', display;
    --font-secondary: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    font-family: var(--font-primary);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Viewport Scaling System */
.page-scaler {
    width: 2700px;
    padding: 20px 40px 20px 20px; /* top right bottom left - increased right padding */
    box-sizing: border-box;
    transform-origin: top left;
}

/* Modal scaling - applied via CSS custom property set by JS */
.modal-overlay {
    --modal-scale: 1;
}

.modal-overlay .modal-content {
    transform: scale(var(--modal-scale));
    transform-origin: center center;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    padding: 0;
    /* Reset root styles */
    position: static;
    background: transparent;
    border-bottom: none;
}

.nav-left,
.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nav-btn {
    text-decoration: none;
    color: #000;
    background: #ebebeb;
    border: var(--border-thick);
    padding: 16px 32px;
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: bold;
    box-shadow: 2px 2px 0px #000;
    transition: transform 0.1s;
    white-space: nowrap;
    display: inline-block;
    line-height: normal;
    cursor: pointer;
}

.nav-btn:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000;
    background: #fff;
}

.nav-btn-white {
    background: #fff;
}

.search-bar {
    width: 100%;
    padding: 16px 32px;
    border: var(--border-thick);
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: bold;
    line-height: normal;
    outline: none;
    box-shadow: 2px 2px 0px #000;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
    height: auto;
}

.search-bar:hover {
    background: #f5f5f5;
    box-shadow: 3px 3px 0px #000;
}

.search-bar:focus {
    background: #fff;
    border-color: #000;
    box-shadow: 4px 4px 0px var(--color-accent);
}

.profile-icon {
    width: 64px;
    height: 64px;
    border: var(--border-thick);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    background-image: url('pfp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Logo Section Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.main-logo {
    max-width: 375px;
    height: auto;
}

/* Feed Header Styles */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ebebeb;
    border: var(--border-thick);
    padding: 22px 43px;
    max-width: 2246px;
    /* Aligned with cards (2304px - 58px padding) */
    width: calc(100% - 58px);
    /* Ensure responsiveness matching grid padding */
    margin: 0 auto 29px auto;
    font-family: var(--font-primary);
    box-shadow: 6px 6px 0px #000;
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: not-allowed;
    opacity: 0.7;
}

.filter-icon svg {
    display: block;
}

.filters-text {
    font-size: 36px;
    letter-spacing: 1px;
}

.feed-title {
    font-size: 36px;
    letter-spacing: 1px;
    flex: 1;
    text-align: center;
}

.feed-title-bold {
    font-weight: bold;
}

/* Image Showcase Section - Comic Book Style */
.image-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 58px;
    padding: 58px 29px;
    max-width: 2304px;
    margin: 0 auto;
}

.showcase-card {
    background: #fff;
    border: var(--border-thick);
    box-shadow: 12px 12px 0px #000;
    padding: 29px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 22px;
    right: 17px;
    padding: 12px 23px;
    font-family: var(--font-primary);
    font-size: 20px;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #000;
    z-index: 10;
}

.card-badge.ending-soon {
    background: var(--color-accent);
    color: #fff;
}

.showcase-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 14px 14px 0px #000;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 7px;
}

.card-user-icon {
    width: 58px;
    height: 58px;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
}

.card-user-info {
    display: flex;
    flex-direction: column;
}

.card-username {
    font-family: var(--font-primary);
    font-size: 26px;
    line-height: 1;
}

.card-timestamp {
    font-family: var(--font-primary);
    font-size: 20px;
    color: #666;
}

/* Card Content */
.card-title {
    font-family: var(--font-primary);
    font-size: 55px;
    line-height: 1;
    /* Removed text-transform: uppercase */
}

.card-location {
    font-family: var(--font-primary);
    font-size: 35px;
    margin-top: -14px;
    margin-bottom: 14px;
}

.card-image-container img {
    width: 100%;
    height: auto;
    border: 2px solid #000;
    display: block;
    filter: grayscale(100%) contrast(1.2);
}

.card-description {
    font-family: var(--font-primary);
    font-size: 31px;
    line-height: 1.2;
    min-height: 138px;
}

/* Card Actions */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: auto;
}

.btn-learn-more,
.btn-take-job {
    width: 100%;
    padding: 17px;
    font-family: var(--font-primary);
    font-size: 35px;
    border: var(--border-thick);
    cursor: pointer;
    /* Removed text-transform: uppercase */
    transition: all 0.1s;
}

.btn-learn-more {
    background: #fff;
    color: #000;
}

.btn-learn-more:hover {
    background: #f0f0f0;
}

.btn-take-job {
    background: #000;
    color: #fff;
    border: 3px solid #000;
}

.btn-take-job:hover {
    background: #222;
    transform: scale(1.02);
}

.btn-take-job.btn-bidding {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.btn-take-job.btn-bidding:hover {
    background: #666;
    transform: none;
}

.btn-take-job.btn-won {
    background: #2a9d2a;
    cursor: default;
}

.btn-take-job.btn-won:hover {
    background: #2a9d2a;
    transform: none;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background: #fff;
    border: var(--border-thick);
    box-shadow: 12px 12px 0px #000;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.2s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    border: 2px solid #000;
    width: 40px;
    height: 40px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
}

.modal-close:hover {
    background: #000;
    color: #fff;
}

/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.modal-user-icon {
    width: 50px;
    height: 50px;
    border: 2px solid #000;
    border-radius: 50%;
    background: #fff;
}

.modal-user-info {
    display: flex;
    flex-direction: column;
}

.modal-username {
    font-family: var(--font-primary);
    font-size: 22px;
    line-height: 1;
}

.modal-timestamp {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #666;
}

/* Modal Title & Location */
.modal-title {
    font-family: var(--font-primary);
    font-size: 36px;
    line-height: 1;
    margin-bottom: 5px;
}

.modal-location {
    font-family: var(--font-primary);
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

/* Modal Image */
.modal-image-container {
    margin-bottom: 20px;
}

.modal-image-container img {
    width: 100%;
    height: auto;
    border: 2px solid #000;
    display: block;
    filter: grayscale(100%) contrast(1.2);
}

/* Modal Details Sections */
.modal-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-section {
    background: #f5f5f5;
    border: 2px solid #000;
    padding: 15px;
}

.modal-section-title {
    font-family: var(--font-primary);
    font-size: 20px;
    margin-bottom: 8px;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

.modal-section-content {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.4;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-modal-close,
.btn-modal-take {
    flex: 1;
    padding: 15px;
    font-family: var(--font-primary);
    font-size: 20px;
    border: var(--border-thick);
    cursor: pointer;
    transition: all 0.1s;
}

.btn-modal-close {
    background: #fff;
    color: #000;
}

.btn-modal-close:hover {
    background: #f0f0f0;
}

.btn-modal-take {
    background: #000;
    color: #fff;
}

.btn-modal-take:hover {
    background: #222;
    transform: scale(1.02);
}

/* Bid Confirmation Modal Specific Styles */
.bid-modal {
    max-width: 550px;
}

.bid-confirmation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.bid-checkmark {
    width: 70px;
    height: 70px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 10px;
}

.bid-title {
    font-family: var(--font-primary);
    font-size: 36px;
}

.bid-timer-section {
    background: #f5f5f5;
    border: 3px solid #000;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.bid-timer-label {
    font-family: var(--font-primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.bid-timer {
    font-family: var(--font-primary);
    font-size: 48px;
    color: var(--color-accent);
    border: 3px solid #000;
    background: #fff;
    padding: 10px 30px;
    display: inline-block;
    box-shadow: 4px 4px 0px #000;
}

.bid-timer-note {
    font-family: var(--font-primary);
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.bid-job-summary {
    border: 2px solid #000;
    padding: 15px;
    background: #fafafa;
    margin-bottom: 20px;
}

/* Upload Modal Styles */
.upload-modal {
    max-width: 500px;
}

.upload-header {
    margin-bottom: 25px;
    text-align: center;
}

.upload-title {
    font-family: var(--font-primary);
    font-size: 32px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.upload-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-label {
    font-family: var(--font-primary);
    font-size: 18px;
}

.upload-input {
    padding: 12px 15px;
    border: 3px solid #000;
    font-family: var(--font-primary);
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.2s;
}

.upload-input:focus {
    box-shadow: 4px 4px 0px #000;
}

.upload-textarea {
    padding: 12px 15px;
    border: 3px solid #000;
    font-family: var(--font-primary);
    font-size: 16px;
    outline: none;
    resize: vertical;
    min-height: 100px;
    transition: box-shadow 0.2s;
}

.upload-textarea:focus {
    box-shadow: 4px 4px 0px #000;
}

.upload-image-container {
    border: 3px dashed #000;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.upload-image-container:hover {
    background: #f0f0f0;
    border-style: solid;
}

.upload-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 48px;
    font-family: var(--font-primary);
    line-height: 1;
}

.upload-text {
    font-family: var(--font-primary);
    font-size: 16px;
    color: #666;
}

.upload-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    filter: grayscale(100%) contrast(1.2);
}

.upload-image-preview.visible {
    display: block;
}

.upload-image-container.has-image .upload-image-placeholder {
    display: none;
}

.upload-row {
    display: flex;
    gap: 5px;
    align-items: stretch;
}

.upload-field-half {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upload-actions {
    margin: 0;
}

.upload-payment-wrapper {
    display: flex;
    align-items: center;
    border: 3px solid #000;
    background: #fff;
}

.upload-payment-symbol {
    padding: 12px 15px;
    font-family: var(--font-primary);
    font-size: 18px;
    background: #f0f0f0;
    border-right: 3px solid #000;
}

.upload-payment {
    border: none;
    flex: 1;
}

.upload-payment:focus {
    box-shadow: none;
}

.upload-payment-wrapper:focus-within {
    box-shadow: 4px 4px 0px #000;
}

.upload-urgent-btn {
    width: 100%;
    height: 100%;
    padding: 12px 15px;
    border: 3px solid #000;
    background: #fff;
    font-family: var(--font-primary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.upload-urgent-btn:hover {
    background: #f0f0f0;
}

.upload-urgent-btn.active {
    background: var(--color-accent);
    color: #fff;
}

.urgent-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid #000;
}

.upload-urgent-btn.active .urgent-indicator {
    background: #fff;
}

/* Upload Page Switching */
.upload-page {
    display: none;
}

.upload-page.active {
    display: block;
}

/* Success Page Styles */
#uploadSuccessPage {
    position: relative;
}

.success-container {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confetti-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #000;
    animation: confetti-fall 2s ease-out forwards;
}

.confetti:nth-child(odd) {
    background: #fff;
    border: 2px solid #000;
}

.confetti-1 { left: 10%; animation-delay: 0s; }
.confetti-2 { left: 20%; animation-delay: 0.1s; }
.confetti-3 { left: 30%; animation-delay: 0.2s; }
.confetti-4 { left: 40%; animation-delay: 0.05s; }
.confetti-5 { left: 50%; animation-delay: 0.15s; }
.confetti-6 { left: 60%; animation-delay: 0.25s; }
.confetti-7 { left: 70%; animation-delay: 0.08s; }
.confetti-8 { left: 80%; animation-delay: 0.18s; }
.confetti-9 { left: 90%; animation-delay: 0.12s; }
.confetti-10 { left: 95%; animation-delay: 0.22s; }

@keyframes confetti-fall {
    0% {
        top: -20px;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    100% {
        top: 100%;
        opacity: 0;
        transform: rotate(720deg) scale(0.5);
    }
}

.success-content {
    text-align: center;
    z-index: 1;
    padding: 40px;
}

.success-title {
    font-family: var(--font-primary);
    font-size: 42px;
    margin-bottom: 15px;
}

.success-subtitle {
    font-family: var(--font-primary);
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

/* Mobile Device Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.mobile-panel {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px #000;
    padding: 40px 30px;
    text-align: center;
    max-width: 350px;
}

.mobile-title {
    font-family: var(--font-primary);
    font-size: 48px;
    margin-bottom: 10px;
}

.mobile-message {
    font-family: var(--font-primary);
    font-size: 20px;
    margin-bottom: 5px;
}

.mobile-submessage {
    font-family: var(--font-primary);
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.mobile-hero {
    font-family: var(--font-primary);
    font-size: 14px;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    border: 3px solid #000;
}

/* Show overlay on mobile devices */
@media screen and (max-width: 768px) {
    .mobile-overlay {
        display: flex;
    }
    
    .page-scaler {
        display: none;
    }
}