/* 메인 페이지 스타일 */

/* 알림 메시지 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

/* 로그인 프롬프트 */
.login-prompt {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
}

.hero-login-prompt {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #1f3a5f;
    text-align: left;
    box-shadow: 0 12px 25px rgba(148, 163, 184, 0.25);
}

.hero-login-prompt p {
    color: inherit;
}

.login-prompt p {
    margin: 0;
    font-size: 16px;
    color: #1976d2;
}

.login-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(25, 118, 210, 0.1);
    transition: all 0.3s ease;
}

.login-link:hover {
    background: rgba(25, 118, 210, 0.2);
    transform: translateY(-1px);
}

/* 히어로 섹션 */
.hero-section {
    position: relative;
    padding: 110px 0 90px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 45%, #ffffff 100%);
    color: #1f2937;
    width: 100%;
}

.hero-section .container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(2.4rem);
    opacity: 0.5;
}

.hero-section::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.55) 0%, rgba(96, 165, 250, 0) 65%);
    top: -160px;
    right: -120px;
}

.hero-section::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.5) 0%, rgba(251, 191, 36, 0) 70%);
    bottom: -120px;
    left: -80px;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #1f2937;
}

.hero-highlights {
    margin: 0;
    padding: 18px 20px;
    list-style: none;
    display: grid;
    gap: 10px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
}

.hero-highlights li {
    font-size: 0.97rem;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-search-card {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 34px 36px 28px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(12px);
}

.hero-search-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    pointer-events: none;
}

/* 검색 폼 스타일 */
.search-form {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
    margin: 0;
}

.search-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* 기존 search-btn (다른 곳에서 사용 중) */
.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 18px 35px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 16px 30px rgba(102, 126, 234, 0.3);
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.35);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 메인 키워드 분석 버튼 (충돌 방지용 새 클래스) */
.analyze-keyword-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 18px 35px !important;
    border-radius: 18px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 16px 30px rgba(99, 102, 241, 0.3) !important;
}

.analyze-keyword-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.35) !important;
}

.analyze-keyword-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.hero-meta-item {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.2);
}

.hero-meta-label {
    display: block;
    font-size: 0.8rem;
    color: #5b6474;
    margin-bottom: 6px;
}

.hero-meta-value {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1d2b3a;
}

.reset-quota-btn {
    margin-top: 20px;
    width: 100%;
    padding: 18px 35px;
    border-radius: 18px;
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(99, 102, 241, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.reset-quota-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* 예시 모달 스타일 */
.example-modal {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== Keyword Overview Block (Light Theme) ===== */
.kw--light{--bg:#f5f7fb;--card:#ffffff;--text:#111827;--muted:#6b7280;--line:#e5e7eb;--accent:#2563eb;--accent-2:#10b981;--danger:#ef4444;--chip:#f3f4f6}
.kw-overview{color:var(--text);background:var(--bg);padding:24px 18px;margin-top:18px;border-radius:16px;border:1px solid var(--line);box-shadow:0 10px 26px rgba(15,23,42,.08)}
.kw-title{display:flex;align-items:center;gap:8px;font-size:1.25rem;font-weight:700;margin:0 0 18px}
.kw-title__icon{font-size:1.05rem}
.kw-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:18px}
.metric{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:transform .2s ease,box-shadow .2s ease}
.metric:hover{transform:translateY(-2px);box-shadow:0 12px 22px rgba(37,99,235,.12)}
.metric__label{font-size:.82rem;color:var(--muted);margin-bottom:6px}
.metric__value{font-size:1.3rem;font-weight:800;color:#111827}
.metric--positive .metric__value{color:#1d4ed8}
.metric--negative .metric__value{color:#ef4444}
.metric--neutral .metric__value{color:#111827}
.kw-sources{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:12px}
.source-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:4px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.source-card__title{font-weight:700;font-size:.95rem;color:#1f2937}
.source-card__value{font-size:1.1rem;font-weight:700}
.source-card__meta{color:var(--muted);font-size:.85rem}
.source-card__hint{color:#9ca3af;font-size:.8rem}
.kw-overview .card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin-top:14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.kw-overview .card__title{font-weight:700;margin-bottom:12px}
.bars{list-style:none;padding:0;margin:0}
.bars li{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.bar-label{flex:0 0 32%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#374151}
.bar{flex:1;height:10px;background:#eef2ff;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.bar-fill{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.bar-value{min-width:64px;text-align:right;color:#111827;font-weight:600}
.kw-trend__head{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:12px}
.kw-trend__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px}
.trend-bars{display:flex;align-items:flex-end;gap:6px;height:140px;padding:0 4px}
.vbar{width:16px;background:linear-gradient(180deg,var(--accent),#60a5fa);border-radius:3px;border:1px solid #dbeafe;cursor:pointer;transition:all 0.2s ease;position:relative}
.vbar:hover{transform:translateY(-3px);box-shadow:0 4px 12px rgba(59,130,246,0.4);filter:brightness(1.1)}
.vbar--ref{background:linear-gradient(180deg,#10b981,#6ee7b7);border-color:#bbf7d0}
.vbar--ref:hover{box-shadow:0 4px 12px rgba(16,185,129,0.4)}
.kw-trend__caption{margin-top:8px;font-size:.85rem;color:var(--muted)}
.kw-grid{display:grid;grid-template-columns:1fr;gap:12px;margin-top:14px}
.kw-grid--tables{grid-template-columns:1fr}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.table{width:100%;border-collapse:separate;border-spacing:0;background:var(--card)}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--line);font-size:.92rem}
.table thead th{position:sticky;top:0;background:var(--card);color:#111827;font-weight:700;z-index:1}
.table tbody tr:hover{background:#f9fafb}
.th-tip{position:relative}
.tip-corner{position:absolute;right:0;top:0;width:0;height:0;border-left:10px solid transparent;border-top:10px solid #c7d2fe}
.th-tip:hover .tip-corner{border-top-color:#93c5fd}
.th-tip .tip{position:absolute;right:6px;top:14px;display:none;min-width:180px;max-width:260px;background:#111827;color:#fff;padding:8px 10px;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.22);font-size:.82rem}
.th-tip:hover .tip{display:block}
.serp-list{list-style:none;padding:0;margin:0}
.serp-item{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.serp-title{color:#1d4ed8;text-decoration:none;font-weight:700}
.serp-title:hover{text-decoration:underline}
.serp-domain{color:#6b7280}
.serp-feat{margin-left:auto;color:#374151;font-size:.88rem}
.kw-grid--qna{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.kw-grid--qna .list{margin:0;padding-left:18px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{background:var(--chip);padding:6px 10px;border-radius:999px;border:1px solid var(--line);font-weight:600;color:#111827}
.kw-overview .empty{text-align:center;padding:30px 12px;color:var(--muted)}
.kw-tags-copy{margin-top:10px;display:flex;align-items:center;gap:8px}
.kw-tags-copy-input{flex:1;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);font-size:.9rem;color:#111827}
.kw-tags-copy-btn{padding:8px 14px;border:none;border-radius:8px;background:#000;color:#fff;font-weight:600;cursor:pointer;transition:all .2s ease;opacity:1!important;visibility:visible!important}
.kw-tags-copy-btn:hover{background:#333;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,0.2)}
.recommendations-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.recommend-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.recommend-card__field{margin-bottom:8px;font-size:.9rem;color:#4b5563}
.recommend-card__field span{display:block;color:#9ca3af;font-size:.78rem;margin-bottom:3px}
.recommend-card__field strong{color:#1f2937}
.copy-alert{position:fixed;top:20px;right:20px;z-index:10000;display:flex;align-items:center;gap:10px;padding:15px 20px;border-radius:10px;font-weight:500;box-shadow:0 12px 32px rgba(15,23,42,.25);transform:translateX(320px);transition:transform .3s ease,opacity .3s ease}
.copy-alert.show{transform:translateX(0)}
.copy-success{background:#ecfdf5;color:#047857}
.copy-error{background:#fef2f2;color:#b91c1c}
.copy-alert .alert-icon{font-size:1.1rem}
.copy-alert .alert-message{font-size:.9rem}
.kw-golden-focus{margin:32px 0}
.kw-golden-focus__head{margin-bottom:16px}
.kw-golden-focus .kw-title{display:flex;align-items:center;font-size:1.4rem;color:#222;margin:0 0 6px}
.kw-golden-focus .kw-title__icon{margin-right:8px}
.kw-golden-focus>p,.kw-golden-focus__head>p{color:#666;margin:0}
.kw-golden-dual{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
@media (max-width: 980px){.kw-golden-dual{grid-template-columns:1fr}}
.kw-golden-card{background:#fff;border:1px solid #e9ecef;border-radius:14px;padding:18px;box-shadow:0 6px 20px rgba(0,0,0,.06)}
.kw-golden-card__header{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.kw-chip{display:inline-block;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:600;letter-spacing:.2px}
.kw-chip--real{background:#e8f5e9;color:#1b5e20;border:1px solid #c8e6c9}
.kw-chip--ai{background:#ede7f6;color:#4527a0;border:1px solid #d1c4e9}
.kw-golden-card__keyword{font-size:1.25rem;font-weight:700;color:#222;margin:6px 0 12px}
.kw-golden-card__metrics{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.kw-golden-card__metrics li{display:flex;align-items:center;justify-content:space-between;background:#f8f9fa;border:1px solid #eef1f4;border-radius:10px;padding:10px 12px}
.kw-golden-card__metrics span{color:#666}
.kw-golden-card__metrics strong{color:#111}
.kw-golden-card__insights{margin:8px 0 0 0;padding-left:18px;color:#333}
.kw-golden-card__insights-box{background:#f8f9fa;border:1px solid #eef1f4;border-radius:10px;padding:10px 12px;margin-top:8px}
.kw-golden-card__placeholder{margin:10px 0;color:#777}
.kw-golden-card__cta{margin-top:12px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border:none;border-radius:10px;padding:10px 14px;font-weight:600;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.kw-golden-card__cta:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(102,126,234,.25)}
.kw-golden-card--ai .kw-golden-card__footnote{margin-top:12px;color:#6b7280;font-size:.9rem}
.kw-golden-card__ideas{list-style:none;margin:8px 0 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:8px}
.kw-golden-card__ideas li{background:#fafafa;border:1px solid #edf2f7;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.kw-golden-card__ideas li strong{color:#1f2937;font-weight:700}
.kw-golden-card__ideas li span{color:#6b7280;font-size:.92rem}
.kw-golden-card__footnote{margin-top:10px;color:#6b7280;font-size:.85rem;border-top:1px dashed #e5e7eb;padding-top:8px}
.ai-powered-badge{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border-radius:10px;padding:10px 14px;margin:16px 0;font-weight:600}
.api-status-warning{background:#fff9e6;border:1px solid #ffe7a3;border-left-width:4px;border-left-color:#ffc107;border-radius:10px;padding:12px 14px;color:#8a6d3b}
@media (max-width:768px){
    .kw-title{font-size:1.1rem}
    .kw-summary{grid-template-columns:repeat(2,1fr)}
    .kw-sources{grid-template-columns:1fr}
    .kw-grid--tables,.kw-grid--qna{grid-template-columns:1fr}
    .trend-bars{height:110px}
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay[style*="opacity: 1"] .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 25px;
}

.example-description {
    color: #666;
    margin-bottom: 25px;
    text-align: center;
    font-size: 16px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.example-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.example-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.example-item:hover::before {
    left: 100%;
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.example-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.example-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.example-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.example-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.example-stats .stat {
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.example-stats .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.example-stats .stat-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.example-tips {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.example-tips h4 {
    color: #1976d2;
    font-size: 16px;
    margin: 0 0 15px 0;
}

.example-tips ul {
    margin: 0;
    padding-left: 20px;
}

.example-tips li {
    color: #424242;
    margin-bottom: 8px;
    line-height: 1.5;
}

.example-tips strong {
    color: #1976d2;
}

.filter-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
}

.search-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.search-count {
    color: #28a745;
    font-weight: 600;
}

.limit-warning {
    color: #dc3545;
    font-weight: 600;
}

.login-required {
    color: #666;
}

.login-required a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

/* 분석 결과 섹션 */
.analysis-results {
    margin: 40px 0;
    animation: slideInUp 0.5s ease;
}

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

.result-actions {
    display: flex;
    gap: 10px;
}

/* 키워드 결과 카드 */
.keyword-result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.keyword-result-card.golden {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    position: relative;
}

.keyword-result-card.golden::before {
    content: '🏆';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffc107;
    border: 3px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    animation: goldenPulse 2s infinite;
}

.keyword-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.result-keyword-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.golden-score-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #ffc107;
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

/* 황금 키워드 섹션 */
.golden-keywords-section {
    margin: 50px 0;
}

.update-time {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.golden-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.golden-keyword {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    border: 3px solid #ffc107;
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

.golden-keyword::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.golden-keyword:hover::before {
    animation: shimmerEffect 0.8s ease-in-out;
}

@keyframes shimmerEffect {
    0% {
        transform: rotate(45deg) translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translateX(100%);
        opacity: 0;
    }
}

.golden-keyword:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.5);
}

.keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.keyword-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.golden-badge {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #333;
}

.golden-badge .score {
    font-size: 14px;
}

.golden-badge::before {
    content: '⭐';
    font-size: 16px;
}

.keyword-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.trend-rising {
    color: #28a745;
}

.trend-stable {
    color: #17a2b8;
}

.trend-falling {
    color: #dc3545;
}

.keyword-action {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
}

.action-text {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* 기능 소개 섹션 */
.features-section {
    margin: 60px 0;
    padding: 60px 0;
    background: #f8f9fa;
    border-radius: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* 업그레이드 섹션 */
.upgrade-section {
    margin: 50px 0;
}

.upgrade-card {
    background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
    color: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 165, 2, 0.3);
}

.upgrade-content h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.upgrade-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.benefit {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
}

/* 로딩 모달 */
.loading-modal .modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-content h3 {
    margin: 20px 0 10px 0;
    color: #333;
}

.loading-content p {
    color: #666;
    margin-bottom: 25px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s infinite;
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 모달 기본 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* 스피너 애니메이션 개선 */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* 분석 결과 스타일 */
.analysis-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.analysis-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.data-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.data-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.data-label {
    color: #666;
    font-size: 14px;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.related-keyword-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-keyword-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-keyword-item.golden {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
}

.youtube-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.youtube-tag {
    background: #ff4757;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-search-card {
        padding: 28px 24px;
    }

    .hero-highlights {
        max-width: 100%;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .golden-keywords-grid {
        grid-template-columns: 1fr;
    }
    
    .keyword-stats {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-keywords-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .search-form {
        padding: 20px;
        margin: 0 10px;
    }
    
    .upgrade-card {
        padding: 30px 20px;
    }
    
    .upgrade-benefits {
        grid-template-columns: 1fr;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 다크모드 대응 (추후 구현용) */
@media (prefers-color-scheme: dark) {
    /* 다크모드 스타일은 추후 추가 */
}

/**
 * =====================================
 * 분석 예시 모달 스타일
 * =====================================
 */

.analysis-modal {
    z-index: 2000;
}

.analysis-modal .modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.analysis-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.analysis-modal .modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.analysis-modal .modal-body {
    padding: 30px;
}

.example-keyword {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.example-keyword h3 {
    margin: 0;
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 황금 점수 섹션 */
.golden-score-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border-radius: 15px;
    border: 2px solid #FFD700;
}

.golden-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    color: #000;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

.golden-badge-large .score {
    font-size: 2rem;
    font-weight: 900;
}

.golden-badge-large .label {
    font-size: 0.9rem;
    margin-top: 5px;
}

.score-description {
    flex: 1;
}

.score-description p {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 지표 그리드 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.metric-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-value {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.metric-trend {
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.metric-trend.up {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.metric-trend.medium {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

/* 연관 키워드 섹션 */
.related-keywords-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(248, 249, 255, 0.8);
    border-radius: 15px;
}

.related-keywords-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.keyword-tag.high {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.keyword-tag.medium {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.keyword-tag.low {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #333;
}

.keyword-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 유튜브 섹션 */
.youtube-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 240, 240, 0.8);
    border-radius: 15px;
}

.youtube-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.youtube-section h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.copy-tags-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-tags-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.copy-text-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.copy-text-header {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.copy-text-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.copy-text-container input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #333;
}

.copy-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 45px;
}

.copy-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.youtube-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yt-tag {
    padding: 6px 12px;
    background: #ff4444;
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.yt-tag:hover {
    background: #cc0000;
    transform: translateY(-1px);
}

/* 콘텐츠 제안 */
.content-suggestions {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(240, 255, 240, 0.8);
    border-radius: 15px;
}

.content-suggestions h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2rem;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1.5;
}

.suggestions-list li:last-child {
    border-bottom: none;
}

/* 시장 분석 */
.market-analysis {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(245, 245, 255, 0.8);
    border-radius: 15px;
}

.market-analysis h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2rem;
}

.analysis-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.analysis-point.positive {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4caf50;
}

.analysis-point.neutral {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
}

.point-icon {
    font-size: 1.2rem;
}

/* 예시 푸터 */
.example-footer {
    text-align: center;
    padding: 30px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.example-footer p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.example-footer .btn {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-footer .btn:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* 모달 애니메이션 */
.analysis-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.analysis-modal.show {
    opacity: 1;
}

.analysis-modal .modal-content {
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.analysis-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .analysis-modal .modal-content {
        max-width: 95%;
        margin: 5% auto;
    }
    
    .analysis-modal .modal-body {
        padding: 20px;
    }
    
    .golden-score-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .golden-badge-large {
        width: 100px;
        height: 100px;
    }
    
    .golden-badge-large .score {
        font-size: 1.6rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .keyword-tags,
    .youtube-tags {
        justify-content: center;
    }
}

/**
 * =====================================
 * 분석 결과 정보 섹션
 * =====================================
 */

.analysis-info-section {
    margin: 40px 0;
}

.info-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-header {
    text-align: center;
    margin-bottom: 40px;
}

.info-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.info-header p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 가로 2개 레이아웃 */
.info-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.info-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* 핵심 지표 카드 */
.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row.golden {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #FFD700;
    margin-top: 8px;
}

.metric-name {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.metric-data {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.golden-score {
    color: #F57C00;
    font-weight: 700;
    font-size: 1.1rem;
}

.trend-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.trend-badge.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.trend-badge.neutral {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.trend-badge.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.golden-badge {
    font-size: 1.2rem;
}

/* 유튜브 최적화 카드 */
.optimization-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-label {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.tag-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    padding: 4px 8px;
    background: #ff4444;
    color: white;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-more {
    padding: 4px 8px;
    background: #e0e0e0;
    color: #666;
    border-radius: 8px;
    font-size: 0.75rem;
}

.copy-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.copy-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 0.8rem;
    color: #555;
}

.copy-btn-info {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn-info:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.copy-note {
    margin: 4px 0 0 0;
    font-size: 0.75rem;
    color: #888;
}

/* 연관 키워드 카드 */
.related-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(248, 249, 255, 0.8);
}

.keyword-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.profit-indicator {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.high-profit .profit-indicator {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.medium-profit .profit-indicator {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.low-profit .profit-indicator {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.more-info {
    margin: 8px 0 0 0;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* 콘텐츠 아이디어 카드 */
.content-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(248, 249, 255, 0.8);
    border-radius: 8px;
}

.platform-icon {
    font-size: 1.2rem;
}

.suggestion-text {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* 액션 버튼 */
.info-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.btn-info-detail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-info-try {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info-try:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* 가로 스크롤바 방지 */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* 사용자 드롭다운 메뉴 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.user-trigger:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-id {
    font-size: 14px;
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 280px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* 화면 우측 끝에서 메뉴가 잘리지 않도록 */
@media (max-width: 320px) {
    .user-dropdown-menu {
        right: -20px;
        min-width: 260px;
    }
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.user-profile {
    padding: 0;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 12px;
    opacity: 0.9;
}

.profile-stats {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.stat-value.user-level {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

.stat-value.user-level.free {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-value.user-level.premium {
    background: #fff3e0;
    color: #f57c00;
}

.stat-value.user-level.admin {
    background: #fce4ec;
    color: #c2185b;
}

.profile-actions {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-profile {
    background: #f5f5f5;
    color: #333;
}

.btn-profile:hover {
    background: #e0e0e0;
    transform: translateX(4px);
}

.btn-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-logout {
    background: #ffebee;
    color: #d32f2f;
}

.btn-logout:hover {
    background: #ffcdd2;
    transform: translateX(4px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .info-grid,
    .info-grid-2col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .info-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-actions button {
        width: 100%;
    }
    
    .user-dropdown-menu {
        min-width: 260px;
        right: 0;
    }
    
    .profile-header {
        padding: 16px;
    }
}
.kw-tags-copy{margin-top:10px;display:flex;align-items:center;gap:8px}
.kw-tags-copy-input{flex:1;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);font-size:.9rem;color:var(--text)}
.kw-tags-copy-btn{padding:8px 14px;border:none;border-radius:8px;background:#000;color:#fff;font-weight:600;cursor:pointer;transition:all .2s ease;opacity:1!important;visibility:visible!important}
.kw-tags-copy-btn:hover{background:#333;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,0.2)}
.copy-alert{position:fixed;top:20px;right:20px;z-index:10000;display:flex;align-items:center;gap:10px;padding:15px 20px;border-radius:10px;font-weight:500;box-shadow:0 12px 32px rgba(15,23,42,.25);transform:translateX(320px);transition:transform .3s ease,opacity .3s ease}
.copy-alert.show{transform:translateX(0)}
.copy-success{background:#ecfdf5;color:#047857}
.copy-error{background:#fef2f2;color:#b91c1c}
.copy-alert .alert-icon{font-size:1.1rem}
.copy-alert .alert-message{font-size:.9rem}
.recommendations-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.recommend-card{border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--card);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.recommend-card__field{margin-bottom:8px;font-size:.9rem;color:#4b5563}
.recommend-card__field span{display:block;color:#9ca3af;font-size:.78rem;margin-bottom:3px}
.recommend-card__field strong{color:#1f2937}
