.guidance-banner {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    margin: 10px 20px 20px 20px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #6c5ce7;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

.guidance-banner strong {
    color: #6c5ce7;
    font-weight: 600;
}/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 85%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.4s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

#feedbackText {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

#feedbackText:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.modal-submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: block;
    margin: 0 auto;
}

.modal-submit-btn:hover {
    background-color: #5d4ed6;
}

.modal-submit-btn:active {
    transform: scale(0.98);
}

/* 감사 메시지 말풍선 */
.thanks-bubble {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: bounceIn 0.5s;
}

.bubble-content {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

.scott-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid var(--primary-color);
}

.bubble-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.bubble-text:before {
    content: "";
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: white;
    border-right-color: white;
}

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

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #ffffff;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #ddd;
    --success-color: #00b894;
    --warning-color: #ff7675;
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

.app-container {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-light);
    position: relative;
}

/* 앱 헤더 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    color: white;
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-logo {
    font-size: 22px;
    font-weight: 800;
}

.progress-info {
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 15px;
}

/* 페르소나 선택 영역 */
.personas-container {
    display: flex;
    gap: 14px;
    padding: 15px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.personas-container::-webkit-scrollbar {
    display: none;
}

.persona {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.persona.active {
    opacity: 1;
}

.persona-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid transparent;
    object-fit: cover;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.2s ease;
}

.persona.active .persona-avatar {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.persona-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.persona-name {
    font-size: 13px;
    color: white;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-weight: 500;
}

/* 콘텐츠 영역 */
.content-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background-color: #f5f5f8;
}

.content-container::-webkit-scrollbar {
    display: none;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
}

.content-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 20px 24px;
}

.card-clickable-area {
    cursor: pointer;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.overlay-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.overlay-tag {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    padding: 5px 0;
}

.meta-item {
    font-size: 13px;
    color: var(--text-secondary);
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    font-size: 12px;
}

.meta-item.domain {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.meta-item.category {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.meta-item.audience {
    background-color: #fff3e0;
    color: #e65100;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-color);
    line-height: 1.3;
}

.target-audience {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    font-weight: 500;
    line-height: 1.4;
    background-color: #f9f9f9;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* 평가 영역 */
.feedback-section {
    padding-top: 18px;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.feedback-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--primary-color);
    text-align: center;
}

.feedback-buttons {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.feedback-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.watch-btn {
    background-color: var(--success-color);
    color: white;
}

.watch-btn:hover, .watch-btn.active {
    background-color: #00a082;
}

.skip-btn {
    background-color: var(--warning-color);
    color: white;
}

.skip-btn:hover, .skip-btn.active {
    background-color: #ff5e5b;
}

.subfeedback {
    display: none;
    background-color: #f9f9f9;
    padding: 18px;
    border-radius: 10px;
    margin-top: 18px;
    border: 1px solid #eee;
}

.subfeedback.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

.subfeedback-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.subfeedback-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.subfeedback-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.subfeedback-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* 제출 버튼 영역 */
.submit-container {
    padding: 24px;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 0;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 25px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background-color: #5d4ed6;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background-color: #b2b2b2;
    cursor: not-allowed;
    transform: none;
}

/* 로딩 애니메이션 */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 15px;
    color: white;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.error-message, .no-content {
    text-align: center;
    padding: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 조정 */
@media (max-width: 600px) {
    .app-container {
        width: 100%;
    }

    .content-container {
        padding: 15px;
    }

    .card-content {
        padding: 16px 20px;
    }

    .feedback-buttons {
        flex-direction: column;
    }
}