﻿.container-2-col {
    display: flex;
    min-height: 100vh;
    /* Ensure full height */
    max-width: 1400px;
    /* Optional: Constrain overall width */
    margin: 0 auto;
}

.col-left {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    padding: 20px;
    position: sticky;
    top: 0;
}

.col-left-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.col-right {
    flex: 1;
    /* Takes the remaining 60% of the width */
    padding: 3rem 4rem;
}

.content-wrapper {
    max-width: 550px;
    /* Keep the content readable */
}

@media (max-width: 992px) {

    /* Breakpoint for smaller screens */
    .container-2-col {
        flex-direction: column;
        /* Stacks columns vertically */
    }

    .col-left {
        height: 250px;
        /* Smaller height for the image at the top */
        width: 100%;
        position: relative;
        /* Not sticky on mobile */
        padding: 1rem;
    }

    .col-right {
        padding: 2rem 1rem;
    }
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.input-field-url {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d4e0e5;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.validation-error {
    color: #ff0000;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

/* --- Pending Submissions --- */
.pending-submissions-section {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.pending-submissions-title {
    font-size: 1rem;
    color: #8e99a4;
    margin-bottom: 1rem;
}

.draft-button {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    display: inline;
}

.draft-item:not(:last-child)::after {
    content: ", ";
    color: #8e99a4;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-content {
    text-align: center;
    font-family: inherit;
    font-weight: 600;
}

.parent-item {
    font-weight: 500;
    font-size: 1.1em;
}

.subcategory-item {
    padding-left: 12px;
    color: var(--muted);
}

.subtext {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

/* Thumbnail Layout */
.thumbnail-upload-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.preview-box {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-select {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

/* Gallery Layout */
.gallery-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gallery-item {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.gallery-item:hover {
    border-color: #aaa;
}

.gallery-item span {
    font-size: 24px;
    color: #aaa;
}

/* Container & Headers */
.media-section {
    margin-bottom: 2.5rem;
    text-align: left;
}

.media-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.subtext {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
}

hr {
    border: 0;
    border-top: 1px solid #f3f4f6;
    margin: 30px 0;
}

/* --- THUMBNAIL SECTION --- */
.thumbnail-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.image-preview-square {
    width: 72px;
    height: 72px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.image-preview-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    border-radius: 8px;
    opacity: 0.7;
}

.btn-outline {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    background-color: white;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-item-preview,
.gallery-upload-slot {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.gallery-upload-slot {
    border: 2px dashed #e5e7eb;
    background-color: #ffffff;
    transition: border-color 0.2s ease;
}

.gallery-upload-slot:hover {
    border-color: #d1d5db;
}

.add-slot-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ff6154;
    /* Product Hunt accent color or your brand color */
    font-weight: 300;
}

.full-width {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.full-width:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.1);
}

/* Form Actions (Pills) */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 40px;
}

.pill {
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pill--solid {
    background-color: #ff6154;
    color: white;
    border: none;
}

.pill:hover {
    opacity: 0.9;
}

/* --- Media step (Thumbnail + Gallery) --- */
.media-card {
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.media-card__header h3 {
    margin: 4px 0;
}

.media-card__body {
    display: grid;
    gap: 18px;
}

.thumbnail-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.thumbnail-preview {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    border: 1px solid var(--border, #e5e7eb);
    background: var(--surface, #f7f9fc);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.thumbnail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-placeholder,
.preview-logo__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb87a, #ff7c9c);
    opacity: 0.2;
    border-radius: 12px;
}

.thumbnail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.or-text {
    font-size: 0.9rem;
    color: var(--muted, #6b7280);
}

.url-input {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.url-input input {
    flex: 1;
    min-width: 240px;
    padding: 10px 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
}

.text-button {
    background: none;
    border: none;
    color: var(--muted, #6b7280);
    cursor: pointer;
    padding: 4px;
    text-decoration: underline;
}

.launch-preview-card {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 14px;
    background: var(--surface, #f7f9fc);
    display: grid;
    gap: 10px;
}

.launch-preview-card__item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.preview-rank {
    font-weight: 700;
    color: var(--muted, #6b7280);
}

.preview-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-copy .preview-title {
    font-weight: 700;
}

.preview-copy .preview-sub {
    color: var(--muted, #6b7280);
    font-size: 0.95rem;
}

.preview-stats {
    display: flex;
    gap: 8px;
}

.preview-chip {
    padding: 6px 10px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: var(--card, #fff);
    font-weight: 600;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.gallery-body {
    display: grid;
    gap: 18px;
}

.gallery-hero {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border, #e5e7eb);
    min-height: 220px;
    overflow: hidden;
    background: var(--surface, #f7f9fc);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 32px;
    text-align: center;
    color: var(--muted, #6b7280);
}

.gallery-controls {
    display: grid;
    gap: 12px;
}

.gallery-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.gallery-actions-row.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.upload-tile {
    width: 120px;
    height: 80px;
    border: 2px dashed var(--border, #e5e7eb);
    border-radius: 10px;
    background: #fff;
    display: grid;
    place-items: center;
    gap: 4px;
    color: #ff6154;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.gallery-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gallery-thumb {
    position: relative;
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    cursor: grab;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-thumb {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    padding: 0;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-hint-row {
    color: var(--muted, #6b7280);
}

.drag-handle {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 3px 6px;
    font-size: 0.75rem;
    color: var(--muted, #6b7280);
    cursor: grab;
}

.gallery-thumb.is-dragging {
    opacity: 0.6;
    border-style: dashed;
}

.logo-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.thumbnail-preview:hover .logo-remove {
    opacity: 1;
    visibility: visible;
}

/* Loading states */
.loading-overlay::after,
.gallery-hero.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    display: block;
}

.loading-overlay::before,
.gallery-hero.is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #ff6154;
    animation: spin 0.75s linear infinite;
    z-index: 2;
}

.loading-overlay.is-loading,
.gallery-hero.is-loading {
    pointer-events: none;
}

@media (max-width: 768px) {
    .thumbnail-body {
        grid-template-columns: 1fr;
    }

    .gallery-actions-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-tile {
        width: 100%;
        height: 70px;
    }
}

.launch-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.launch-hero {
    margin-bottom: 4rem;
}

.launch-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.launch-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.launch-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    background-color: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

.launch-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit {
    text-align: left;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: var(--text-muted);
}

.launch-share {
    margin-bottom: 2rem;
}

.share-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    background-color: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.share-button:hover {
    background-color: #f5f5f5;
}

.share-button.twitter:hover {
    background-color: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-button.linkedin:hover {
    background-color: #0077b5;
    color: white;
    border-color: #0077b5;
}

@media (max-width: 768px) {
    .launch-title {
        font-size: 2.5rem;
    }
}

