/* Launch Checklist - ShipKaro Minimal Theme */

:root {
    --purple: #A78BFA;
    --purple-dark: #8B5CF6;
    --purple-light: #C4B5FD;
    --black: #1a1a1a;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --success: #10B981;
}

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

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
}

/* Navigation (same as main site) */
.nav {
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-icon {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--purple);
}

.nav-link-active {
    color: var(--purple);
}

.nav-link-cta {
    background: var(--purple);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link-cta:hover {
    background: var(--purple-dark);
    color: var(--white);
}

/* Launch Header */
.launch-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.launch-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--gray);
}

/* Project Form */
.project-form {
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-container {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    color: var(--gray);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.form-group input::placeholder {
    color: var(--gray);
}

/* Logo Upload */
.logo-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-preview {
    width: 64px;
    height: 64px;
    border: 2px dashed var(--gray-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-upload {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--purple);
    background: var(--white);
    border: 1px solid var(--purple);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-upload:hover {
    background: var(--purple);
    color: var(--white);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--purple);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

/* Project Dashboard */
.project-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

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

.project-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.project-info-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.project-handle {
    color: var(--gray);
    font-size: 0.875rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* Progress Overview */
.progress-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.progress-ring-container {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--white);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: var(--purple);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
}

.progress-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-count {
    font-size: 1rem;
    color: var(--black);
}

.phase-indicator {
    font-size: 0.875rem;
    color: var(--purple);
    font-weight: 500;
}

/* Share Actions */
.share-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-share:hover {
    border-color: var(--purple);
    background: rgba(167, 139, 250, 0.05);
}

.btn-twitter:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.btn-linkedin:hover {
    border-color: #0A66C2;
    color: #0A66C2;
}

/* Checklist Container - 3 column layout */
.checklist-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Phase */
.phase {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
}

.phase-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.phase-title:hover {
    background: var(--purple-light);
}

.phase-icon {
    font-size: 1.25rem;
}

.phase-progress {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray);
}

.phase-content {
    padding: 0;
}

.phase-content.collapsed {
    display: none;
}

/* Category */
.category {
    border-bottom: 1px solid var(--gray-light);
}

.category:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    padding: 1rem 1.25rem 0.5rem;
}

/* Checklist Items */
.checklist-items {
    list-style: none;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    transition: background 0.2s ease;
}

.checklist-item:hover {
    background: rgba(167, 139, 250, 0.05);
}

.checklist-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-light);
    border-radius: 4px;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checklist-item input[type="checkbox"]:hover {
    border-color: var(--purple);
}

.checklist-item input[type="checkbox"]:checked {
    background: var(--purple);
    border-color: var(--purple);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.checklist-item label {
    display: flex;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.item-text {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--black);
    transition: all 0.2s ease;
}

.checklist-item.completed .item-text {
    text-decoration: line-through;
    color: var(--gray);
}

/* Skip button */
.skip-item-btn {
    opacity: 0;
    padding: 0.375rem;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checklist-item:hover .skip-item-btn {
    opacity: 1;
}

.skip-item-btn:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.1);
}

.skip-item-btn.skipped {
    opacity: 1;
    color: #DC2626;
}

/* Skipped item state */
.checklist-item.skipped {
    opacity: 0.6;
}

.checklist-item.skipped .item-text {
    text-decoration: line-through;
    color: var(--gray);
}

.checklist-item.skipped input[type="checkbox"] {
    background: var(--gray-light);
    border-color: var(--gray-light);
}

/* Share Card (hidden for capture) */
.share-card {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1200px;
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.share-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.share-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.share-name-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.share-project-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
}

.share-project-url {
    font-size: 0.9rem;
    color: #2563EB;
    font-weight: 500;
}

.share-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-card-header .share-tagline {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

.share-social {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.share-social svg {
    opacity: 0.7;
}

.share-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.share-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6D28D9;
    line-height: 1;
}

.share-percentage-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.share-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.share-phase {
    display: flex;
    flex-direction: column;
}

.share-phase-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2563EB;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-category {
    margin-bottom: 1rem;
}

.share-category-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #DC2626;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.share-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.share-item {
    font-size: 0.875rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-item.completed {
    color: var(--gray);
}

.share-item-check {
    width: 16px;
    height: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 3px;
    flex-shrink: 0;
}

.share-item.completed .share-item-check {
    background: var(--purple);
    border-color: var(--purple);
    position: relative;
}

.share-item.completed .share-item-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.share-item.completed .share-item-text {
    text-decoration: line-through;
}

/* Skipped items in share card */
.share-item.skipped {
    opacity: 0.6;
    color: var(--gray);
}

.share-item.skipped .share-item-check {
    background: var(--gray-light);
    border-color: var(--gray);
    position: relative;
}

.share-item.skipped .share-item-check::after {
    content: '×';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: var(--gray);
    line-height: 1;
}

.share-item.skipped .share-item-text {
    text-decoration: line-through;
}

.share-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--gray-light);
}

.share-footer-left {
    display: flex;
    align-items: center;
}

.share-footer-logo {
    height: 32px;
    width: auto;
}

.share-footer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-cta {
    font-size: 0.875rem;
    color: var(--gray);
}

.share-url {
    font-size: 0.875rem;
    color: #6D28D9;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--gray-light);
    margin-top: 3rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter {
    margin-bottom: 1.5rem;
}

.newsletter-link {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--purple);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.newsletter-link:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--gray);
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: var(--purple);
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .checklist-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .launch-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .launch-header h1 {
        font-size: 2rem;
    }

    .project-form {
        padding: 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .project-dashboard {
        padding: 0 1.5rem 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .progress-overview {
        flex-direction: column;
        text-align: center;
    }

    .share-actions {
        flex-direction: column;
    }

    .btn-share {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .nav-link-cta {
        padding: 0.4rem 0.75rem;
    }

    .launch-header h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .phase-title {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .checklist-item {
        padding: 0.625rem 1rem;
    }

    .item-text {
        font-size: 0.875rem;
    }
}
