* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #0a1929 0%, #1a237e 50%, #002147 100%);
    color: white;
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-container {
    margin-bottom: 3rem;
}

.progress-steps {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4a4a4a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

.step.active {
    background: #304ffe;
    box-shadow: 0 0 20px rgba(48, 79, 254, 0.4);
}

.step.completed {
    background: #4caf50;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #4a4a4a;
    margin: 0 10px;
}

.step-line.completed {
    background: #4caf50;
}

.progress-title {
    color: #ccc;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Main Content */
.main-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    color: #5c94d1;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(92, 148, 209, 0.3);
}

/* Step Layers */
.step-layer {
    display: none;
}

.step-layer.active {
    display: block;
}

/* Step 1 - Input */
.input-group {
    margin-bottom: 2rem;
}

.input-field {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #304ffe;
    box-shadow: 0 0 20px rgba(48, 79, 254, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.generate-button {
    background: linear-gradient(135deg, #304ffe, #3f51b5);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(48, 79, 254, 0.4);
    display: block;
    margin: 0 auto;
    min-width: 200px;
}

.generate-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(48, 79, 254, 0.5);
    background: linear-gradient(135deg, #1a237e, #303f9f);
}

.generate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Step 2 - Title Items */
.title-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.title-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    flex: 1;
}

.title-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.copy-btn, .outline-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.copy-btn:hover, .outline-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.outline-btn {
    background: linear-gradient(135deg, #304ffe, #3f51b5);
    box-shadow: 0 2px 8px rgba(48, 79, 254, 0.3);
}

.outline-btn:hover {
    background: linear-gradient(135deg, #1a237e, #303f9f);
    box-shadow: 0 4px 12px rgba(48, 79, 254, 0.4);
}

/* Step 3 - Selected Title */
.selected-title {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #ccc;
}

.outline-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.outline-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    white-space: pre-line;
}

.outline-content ol {
    padding-left: 1.5rem;
}

.outline-content li {
    margin-bottom: 0.5rem;
    color: white;
}

/* Step 4 - Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.content-type {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5c94d1;
}

.content-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    position: relative;
    margin-bottom: 1rem;
}

.content-textarea {
    width: 100%;
    min-height: 300px;
    background: transparent;
    border: none;
    color: white;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.content-textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.02);
}

.content-textarea.blog {
    min-height: 500px;
    font-family: 'Courier New', monospace;
}

.content-textarea.instagram {
    min-height: 200px;
}

.content-textarea.thread {
    min-height: 250px;
}

/* Copy Icon */
.copy-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.copy-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.content-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-button {
    background: linear-gradient(135deg, #304ffe, #3f51b5);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(48, 79, 254, 0.3);
    flex: 1;
    min-width: 140px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(48, 79, 254, 0.4);
    background: linear-gradient(135deg, #1a237e, #303f9f);
}

.action-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.action-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Download All Button */
.download-all-section {
    text-align: center;
    margin: 3rem 0;
}

.download-all-button {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-all-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

/* Warning Messages */
.warning-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.warning-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.warning-item:last-child {
    margin-bottom: 0;
}

.warning-icon {
    margin-right: 0.5rem;
    margin-top: 0.1rem;
}

.warning-text {
    color: #ffb74d;
    font-weight: 600;
    line-height: 1.4;
}

.info-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #304ffe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Full Screen Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 41, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #304ffe;
    margin-bottom: 2rem;
}

.loading-overlay .loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.loading-overlay .loading-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .main-section {
        padding: 1.5rem;
    }

    .action-buttons, .content-actions {
        flex-direction: column;
    }

    .action-button {
        min-width: auto;
    }

    .copy-icon {
        position: static;
        margin: 1rem 0 0 auto;
        width: 35px;
        height: 35px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .title-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .title-actions {
        justify-content: center;
    }

    .progress-steps {
        margin-bottom: 0.5rem;
    }

    .step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .generate-button {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-line {
        margin: 0 5px;
    }

    .main-section {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .download-all-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

.description {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    line-height: 1.6;
    color: #666;
} 