/* Shared styles for viral marketing tools */
/* Mobile-first approach */

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

body {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #111;
    background: #fafafa;
    min-height: 100vh;
}

/* Tool Container */
.tool-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.tool-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    background: linear-gradient(135deg in oklch,
        oklch(78% 0.15 55) 0%,
        oklch(70% 0.22 15) 50%,
        oklch(78% 0.13 195) 100%);
    color: white;
    border-radius: 0 0 24px 24px;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
}

.tool-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tool-header .subtitle {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Checklist Items */
.checklist-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.checklist-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.checklist-item:hover {
    border-color: #FFB8B8;
    background: #FFF5F5;
}

.checklist-item.checked {
    border-color: #FF6B6B;
    background: #FFF5F5;
}

.checklist-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    cursor: pointer;
    accent-color: #FF6B6B;
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
}

.checklist-item.checked label {
    color: #666;
}

/* Progress Bar */
.progress-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    transition: width 0.3s ease;
    border-radius: 6px;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Result Section */
.result-section {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
    display: none;
}

.result-section.show {
    display: block;
    animation: slideUp 0.4s ease;
}

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

.result-badge {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111;
}

.result-percentage {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

.result-message {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Result Type Colors */
.result-section.calm {
    border: 3px solid #4CAF50;
}

.result-section.calm .result-badge {
    color: #4CAF50;
}

.result-section.nervous {
    border: 3px solid #FFC107;
}

.result-section.nervous .result-badge {
    color: #FFC107;
}

.result-section.danger {
    border: 3px solid #F44336;
}

.result-section.danger .result-badge {
    color: #F44336;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background: #FF6B6B;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,107,0.3);
}

.btn-outline {
    background: white;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
    width: 100%;
    margin-top: 0.75rem;
}

.btn-outline:hover {
    background: #FFF5F5;
    transform: translateY(-2px);
}

.btn-share {
    background: #1DA1F2;
    color: white;
    margin-bottom: 0.75rem;
}

.btn-share:hover {
    background: #1a91da;
}

.btn-kakao {
    background: #FEE500;
    color: #000;
    margin-bottom: 0.75rem;
}

.btn-kakao:hover {
    background: #fdd835;
}

/* Footer CTA */
.tool-footer {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: none;
}

.tool-footer.show {
    display: block;
}

.tool-footer h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #111;
}

.tool-footer p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.tool-footer a {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 600;
}

.tool-footer a:hover {
    text-decoration: underline;
}

/* Warning Alert */
.warning-alert {
    background: #FFF3CD;
    border: 2px solid #FFC107;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: none;
}

.warning-alert.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.warning-alert strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #856404;
}

.warning-alert p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
}

/* Desktop enhancements */
@media (min-width: 769px) {
    .tool-container {
        padding: 2rem;
    }

    .tool-header h1 {
        font-size: 2.25rem;
    }

    .tool-header .subtitle {
        font-size: 1.15rem;
    }

    .checklist-section {
        padding: 2rem;
    }

    .result-title {
        font-size: 1.75rem;
    }

    .btn {
        width: auto;
        min-width: 200px;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Animations */
@keyframes checkMark {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.checklist-item.checked {
    animation: checkMark 0.3s ease;
}
