/* ===== AI HASHTAG GENERATOR CSS ===== */

.hash-wrapper { margin-bottom: 28px; }
.hash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.hash-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 20px; padding: 24px; }
.hash-result-card { border-color: #6d28d9; }
.hash-card-title  { font-size: 16px; font-weight: 800; color: #1f2937; margin-bottom: 20px; }

.hash-field  { margin-bottom: 18px; }
.hash-label  { display: block; font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 8px; }

.hash-textarea {
    width: 100%; min-height: 80px; border: 2px solid #e5e7eb;
    border-radius: 12px; padding: 12px; font-size: 14px;
    font-family: inherit; resize: vertical; outline: none;
    transition: border-color 0.2s; box-sizing: border-box; color: #1f2937;
}
.hash-textarea:focus { border-color: #7c3aed; }
.hash-char-count { font-size: 11px; color: #9ca3af; text-align: right; margin-top: 4px; }

.hash-btn-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.hash-sel-btn {
    background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 10px;
    padding: 7px 13px; font-size: 12px; font-weight: 600; color: #374151;
    cursor: pointer; transition: all 0.2s;
}
.hash-sel-btn:hover  { border-color: #7c3aed; color: #5b21b6; }
.hash-sel-btn.active { background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff; border-color: #6d28d9; }

/* Slider */
.hash-slider {
    -webkit-appearance: none; width: 100%; height: 6px;
    border-radius: 999px; background: #e5e7eb; outline: none; margin-top: 8px;
}
.hash-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: linear-gradient(135deg,#7c3aed,#6d28d9);
    cursor: pointer; box-shadow: 0 2px 8px rgba(124,58,237,0.4);
}
.hash-slider-labels { display: flex; justify-content: space-between; font-size: 11px; color: #9ca3af; margin-top: 4px; }

.hash-generate-btn {
    width: 100%; background: linear-gradient(135deg,#7c3aed,#6d28d9);
    color: #fff; border: none; border-radius: 14px;
    padding: 16px; font-size: 17px; font-weight: 800;
    cursor: pointer; transition: all 0.25s; margin-top: 4px;
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.hash-generate-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.45); }
.hash-generate-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Placeholder */
.hash-placeholder { padding: 24px; text-align: center; }
.hash-ph-icon { font-size: 48px; margin-bottom: 10px; }
.hash-ph-text { font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.hash-ph-sub  { font-size: 13px; color: #9ca3af; margin-bottom: 18px; }
.hash-ph-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.hash-tag-demo { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.hash-legend { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; max-width: 240px; margin: 0 auto; }
.hash-legend-item { font-size: 12px; color: #6b7280; }

/* Loading */
.hash-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; gap: 14px; font-size: 14px; color: #6b7280; }
.hash-loading-dots { display: flex; gap: 8px; }
.hash-loading-dots span { width: 10px; height: 10px; background: #7c3aed; border-radius: 50%; animation: hash-bounce 1.2s infinite; }
.hash-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.hash-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes hash-bounce { 0%,80%,100%{transform:scale(0.7);opacity:0.5} 40%{transform:scale(1.2);opacity:1} }

/* Results */
.hash-stats-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #ede9fe; }
.hash-total     { font-size: 14px; font-weight: 800; color: #5b21b6; }
.hash-copy-all-btn {
    background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff;
    border: none; border-radius: 8px; padding: 8px 16px;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.hash-copy-all-btn:hover { transform: translateY(-1px); }

.hash-section       { margin-bottom: 16px; }
.hash-section-title { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 10px; }
.hash-tags-wrap     { display: flex; flex-wrap: wrap; gap: 8px; }

.hash-tag {
    padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: all 0.15s; user-select: none;
}
.hash-tag:hover { transform: scale(1.08); }

.hash-small  { background: #f0fdf4; color: #15803d; border: 2px solid #86efac; }
.hash-medium { background: #fffbeb; color: #92400e; border: 2px solid #fde68a; }
.hash-large  { background: #fff5f5; color: #991b1b; border: 2px solid #fca5a5; }

.hash-tag-demo.hash-small  { background: #f0fdf4; color: #15803d; border: 2px solid #86efac; }
.hash-tag-demo.hash-medium { background: #fffbeb; color: #92400e; border: 2px solid #fde68a; }
.hash-tag-demo.hash-large  { background: #fff5f5; color: #991b1b; border: 2px solid #fca5a5; }

/* Error */
.hash-error { display: flex; align-items: center; gap: 8px; padding: 20px; background: #fff5f5; border-radius: 12px; color: #dc2626; font-size: 14px; }

/* Info Box */
.info-box { background: linear-gradient(135deg,#faf5ff,#ede9fe); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.info-box h4 { color: #4c1d95; font-size: 20px; margin-bottom: 18px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 14px; }
.info-item { background: #fff; border-radius: 12px; padding: 16px; font-size: 14px; color: #374151; line-height: 1.6; }
.info-item strong { display: block; color: #7c3aed; font-size: 14px; font-weight: 700; margin-bottom: 4px; }

@media (max-width: 860px) { .hash-grid { grid-template-columns: 1fr; } }