/* YouTube Tools Analyzer Pro - Complete Styling with Enhanced Tag Colors */

/* ===== BASE ===== */
.yt-tools-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #1a1a1a;
}

/* ===== HERO SECTION ===== */
.yt-hero {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #0b5e56 100%);
    border-radius: 24px;
    padding: 50px 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(13, 148, 136, 0.3);
}

.yt-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: yt-float 8s ease-in-out infinite;
}

.yt-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: yt-float 12s ease-in-out infinite reverse;
}

@keyframes yt-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.yt-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.yt-hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    animation: yt-pulse-glow 3s ease-in-out infinite;
}

@keyframes yt-pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.1); }
    50% { box-shadow: 0 0 40px rgba(255,255,255,0.3); }
}

.yt-hero-title {
    color: white;
    font-size: 42px;
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -1px;
}

.yt-hero-title .yt-highlight {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yt-hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px;
}

.yt-hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.yt-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 100px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.yt-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

/* ===== CONTAINER & CARDS ===== */
.yt-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.yt-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.yt-card:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.yt-card-glow {
    border: 1px solid rgba(13, 148, 136, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.yt-card-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #d1fae5;
}

.yt-card-body {
    padding: 28px;
}

/* ===== API SECTION ===== */
.yt-api-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yt-api-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.yt-api-icon {
    font-size: 24px;
}

.yt-api-label {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.yt-status-badge {
    margin-left: auto;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yt-status-badge.online {
    background: #d1fae5;
    color: #059669;
}

.yt-status-badge.offline {
    background: #fee2e2;
    color: #dc2626;
}

.yt-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #6b7280;
}

.yt-status-badge.online .yt-status-dot {
    background: #059669;
    animation: yt-pulse 1.5s infinite;
}

.yt-status-badge.offline .yt-status-dot {
    background: #dc2626;
}

@keyframes yt-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.yt-api-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.yt-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yt-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.yt-input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a1a;
    width: 100%;
}

.yt-input:focus {
    border-color: #0d9488;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.yt-input-large {
    font-size: 16px;
    padding: 14px 20px;
}

.yt-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.yt-select:focus {
    border-color: #0d9488;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

.yt-api-actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

/* ===== BUTTONS ===== */
.yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.yt-btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.yt-btn-primary {
    background: #0d9488;
    color: white;
}

.yt-btn-primary:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

.yt-btn-success {
    background: #d1fae5;
    color: #059669;
}

.yt-btn-success:hover {
    background: #a7f3d0;
    transform: translateY(-2px);
}

.yt-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.yt-btn-danger:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.yt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.yt-btn-icon {
    width: 18px;
    height: 18px;
}

/* ===== SEARCH SECTION ===== */
.yt-search-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.yt-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yt-search-icon {
    font-size: 22px;
}

.yt-search-label {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.yt-search-row {
    display: flex;
    gap: 12px;
}

.yt-search-row .yt-input {
    flex: 1;
}

/* ===== ERROR ===== */
.yt-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-error::before {
    content: '⚠️';
    font-size: 20px;
}

/* ===== LOADING ===== */
.yt-loading {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.yt-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: yt-spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes yt-spin {
    to { transform: rotate(360deg); }
}

.yt-loading-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.yt-loading-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.yt-step {
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 100px;
    font-size: 13px;
    color: #6b7280;
    animation: yt-fadeIn 1s ease-in-out infinite;
}

.yt-step:nth-child(2) { animation-delay: 0.5s; }
.yt-step:nth-child(3) { animation-delay: 1s; }

@keyframes yt-fadeIn {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== PLACEHOLDER ===== */
.yt-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.yt-placeholder-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.yt-placeholder-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.yt-placeholder-text {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 30px;
}

.yt-placeholder-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.yt-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    justify-content: center;
}

.yt-feature-icon {
    font-size: 18px;
}

/* ===== PANELS ===== */
.yt-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.yt-panel {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.yt-panel:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.yt-panel-header {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.yt-low-comp {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #fcd34d;
}

.yt-low-comp .yt-panel-header {
    color: #d97706;
}

/* ===== LEGEND ===== */
.yt-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.yt-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
}

.yt-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.yt-legend-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}

/* ===== CATEGORY TABS ===== */
.yt-cat-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.yt-cat-tab {
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #d4d4d4;
    background: #ffffff;
    color: #6b7280;
    transition: all 0.2s;
}

.yt-cat-tab:hover,
.yt-cat-tab.active {
    border-color: #ea580c;
    color: #ea580c;
    background: #fff7ed;
}

/* ===== KEYWORD GRID ===== */
.yt-kw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.yt-kw-col {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 16px;
}

.yt-kw-col-t {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yt-dot-short {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #0d9488;
}

.yt-dot-long {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #7c3aed;
}

.yt-dot-phrase {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: #2563eb;
}

.yt-kw-count {
    font-size: 8px;
    color: #9ca3af;
    margin-left: auto;
}

/* ===== PERIOD TABS ===== */
.yt-period-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.yt-period-tab {
    padding: 7px 16px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #d4d4d4;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
}

.yt-period-tab:hover,
.yt-period-tab.active {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
}

/* ============================================= */
/* ===== ENHANCED ARTISTIC KEYWORD TAGS ===== */
/* ============================================= */

.yt-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #1a1a1a;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Glow effect on hover */
.yt-tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.yt-tag:hover::before {
    opacity: 1;
}

.yt-tag::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, transparent, rgba(13, 148, 136, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.yt-tag:hover::after {
    opacity: 1;
}

.yt-tag:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.yt-tag:active {
    transform: scale(0.95);
}

/* ===== TIER BADGES - ENHANCED COLORS ===== */

/* T1 - PLATINUM/GOLD (Premium) */
.t1 {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #78350f;
    border-color: #f59e0b;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.t1::before {
    content: '⭐';
    font-size: 11px;
}

.t1::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: yt-shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes yt-shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* T1 Alternative - Emerald (for very high keywords) */
.t1-alt {
    background: linear-gradient(135deg, #6ee7b7, #34d399);
    color: #064e3b;
    border-color: #34d399;
    box-shadow: 0 2px 12px rgba(52, 211, 153, 0.4);
}

.t1-alt::before {
    content: '💎';
    font-size: 11px;
}

/* T2 - SILVER (Good) */
.t2 {
    background: linear-gradient(135deg, #e5e7eb, #9ca3af);
    color: #1f2937;
    border-color: #9ca3af;
    box-shadow: 0 2px 10px rgba(156, 163, 175, 0.3);
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.t2::before {
    content: '✦';
    font-size: 11px;
}

/* T3 - BRONZE (Average) */
.t3 {
    background: linear-gradient(135deg, #fed7aa, #d97706);
    color: #78350f;
    border-color: #d97706;
    box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3);
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.t3::before {
    content: '◆';
    font-size: 11px;
}

/* ===== VOLUME BADGES - ENHANCED COLORS ===== */

/* Very High - Premium Gold/Green */
.vol-vh {
    background: linear-gradient(135deg, #d1fae5, #10b981);
    color: #064e3b;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vol-vh::before {
    content: '🔥';
    font-size: 11px;
}

/* High - Blue Premium */
.vol-h {
    background: linear-gradient(135deg, #dbeafe, #3b82f6);
    color: #1e3a5f;
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vol-h::before {
    content: '📈';
    font-size: 11px;
}

/* Medium - Purple */
.vol-m {
    background: linear-gradient(135deg, #ede9fe, #8b5cf6);
    color: #3b1f6e;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vol-m::before {
    content: '📊';
    font-size: 11px;
}

/* Low - Gray/Blue Opportunity */
.vol-l {
    background: linear-gradient(135deg, #f3f4f6, #9ca3af);
    color: #374151;
    border: 2px solid rgba(156, 163, 175, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vol-l::before {
    content: '💎';
    font-size: 11px;
}

/* ===== TAG VARIATIONS - ENHANCED COLORS ===== */

/* Low Competition - Warm Gold */
.yt-tag-lo {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(252, 211, 77, 0.2);
    border-width: 2px;
}

.yt-tag-lo:hover {
    box-shadow: 0 8px 25px rgba(252, 211, 77, 0.4);
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

/* Title Keywords - Mint Green */
.yt-tag-title {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
    color: #065f46;
    box-shadow: 0 2px 8px rgba(110, 231, 183, 0.2);
    border-width: 2px;
}

.yt-tag-title:hover {
    box-shadow: 0 8px 25px rgba(110, 231, 183, 0.4);
    border-color: #34d399;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* Tag Keywords - Royal Blue */
.yt-tag-vtag {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    color: #1e40af;
    box-shadow: 0 2px 8px rgba(147, 197, 253, 0.2);
    border-width: 2px;
}

.yt-tag-vtag:hover {
    box-shadow: 0 8px 25px rgba(147, 197, 253, 0.4);
    border-color: #60a5fa;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

/* Hashtag - Lavender Purple */
.yt-tag-hs {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-color: #c4b5fd;
    color: #5b21b6;
    box-shadow: 0 2px 8px rgba(196, 181, 253, 0.2);
    border-width: 2px;
}

.yt-tag-hs:hover {
    box-shadow: 0 8px 25px rgba(196, 181, 253, 0.4);
    border-color: #a78bfa;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

/* Trending Keywords - Teal/Cyan */
.yt-tag-kw {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
    color: #166534;
    box-shadow: 0 2px 8px rgba(134, 239, 172, 0.15);
    border-width: 2px;
}

.yt-tag-kw:hover {
    box-shadow: 0 8px 25px rgba(134, 239, 172, 0.35);
    border-color: #4ade80;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
}

/* ===== KEYWORD WITH TIER + VOLUME ===== */

/* Combined styling for keyword with tier and volume */
.yt-tag-keyword {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #1a1a1a;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.yt-tag-keyword:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== ARTISTIC COPY ICON ===== */
.yt-copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.08);
    font-size: 11px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 2px;
    border: 1px solid transparent;
    cursor: pointer;
}

.yt-tag:hover .yt-copy-icon {
    opacity: 1;
    transform: scale(1.1) rotate(-5deg);
    background: rgba(13, 148, 136, 0.15);
    border-color: rgba(13, 148, 136, 0.2);
}

.yt-copy-icon:hover {
    background: #0d9488 !important;
    color: white !important;
    transform: scale(1.2) rotate(0deg) !important;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

/* ===== COPY ALL BUTTONS - ENHANCED ===== */
.yt-copy-all-btn,
.yt-copy-col-btn {
    margin-left: auto;
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0.05));
    color: #0d9488;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(13, 148, 136, 0.15);
    position: relative;
    z-index: 1;
}

.yt-copy-all-btn::before,
.yt-copy-col-btn::before {
    content: '📋';
    font-size: 12px;
}

.yt-copy-all-btn::after,
.yt-copy-col-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.yt-copy-all-btn:hover::after,
.yt-copy-col-btn:hover::after {
    opacity: 1;
}

.yt-copy-all-btn:hover,
.yt-copy-col-btn:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
    border-color: transparent;
}

.yt-copy-all-btn:active,
.yt-copy-col-btn:active {
    transform: scale(0.95) translateY(0);
}

/* ===== COPIED ANIMATION ===== */
.yt-tag.copied {
    animation: yt-copy-flash 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes yt-copy-flash {
    0% {
        transform: scale(1);
        background: #d1fae5;
        border-color: #0d9488;
    }
    30% {
        transform: scale(1.15);
        background: #a7f3d0;
        border-color: #0d9488;
        box-shadow: 0 0 30px rgba(13, 148, 136, 0.4);
    }
    60% {
        transform: scale(0.95);
        background: #d1fae5;
    }
    100% {
        transform: scale(1);
        background: transparent;
        border-color: inherit;
    }
}

.yt-tag.copied .yt-copy-icon {
    opacity: 1;
    background: #0d9488;
    color: white;
    transform: scale(1.1);
}

/* ===== RIPPLE EFFECT ===== */
@keyframes yt-ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== TOAST - ARTISTIC ===== */
.yt-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 14px 32px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    box-shadow: 0 12px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}

.yt-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.yt-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-toast-icon {
    font-size: 22px;
    animation: yt-toast-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes yt-toast-pop {
    0% { transform: scale(0) rotate(-30deg); }
    60% { transform: scale(1.3) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.yt-toast-message {
    font-size: 14px;
}

.yt-toast-title {
    font-weight: 700;
    font-size: 15px;
}

.yt-toast-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
    font-weight: 400;
}

/* ===== LOW COMPETITION HINT ===== */
.yt-low-comp-hint {
    font-size: 11px;
    color: #92400e;
    margin-bottom: 14px;
    font-style: italic;
    opacity: 0.7;
}

/* ===== SCORE ===== */
.yt-score-container {
    text-align: center;
    padding: 20px 0;
}

.yt-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    font-size: 48px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.3);
    position: relative;
}

.yt-score-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.yt-score-label {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.yt-suggestions {
    margin-top: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: left;
}

.yt-suggestions strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.yt-suggestions ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.yt-suggestions li {
    padding: 4px 0;
    color: #4b5563;
    font-size: 14px;
    position: relative;
}

.yt-suggestions li::before {
    content: '💡';
    position: absolute;
    left: -24px;
}

/* ===== VIDEO CARDS ===== */
.yt-video-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.yt-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #0d9488;
}

.yt-rank {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    background: #f3f4f6;
    color: #6b7280;
}

.yt-rank-1 {
    background: #fcd34d;
    color: #1a1a1a;
}

.yt-rank-2 {
    background: #e5e7eb;
    color: #1a1a1a;
}

.yt-rank-3 {
    background: #fed7aa;
    color: #1a1a1a;
}

.yt-video-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-right: 60px;
}

.yt-video-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.yt-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #0d9488;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.yt-watch-link:hover {
    background: #0f766e;
    transform: translateY(-2px);
}

/* ===== GRID LAYOUTS ===== */
.yt-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ===== TAG GROUPS ===== */
.yt-tag-group {
    margin-bottom: 16px;
}

.yt-tag-group:last-child {
    margin-bottom: 0;
}

.yt-tag-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .yt-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .yt-placeholder-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .yt-hero {
        padding: 30px 20px;
    }
    
    .yt-hero-title {
        font-size: 28px;
    }
    
    .yt-api-fields {
        grid-template-columns: 1fr;
    }
    
    .yt-search-row {
        flex-direction: column;
    }
    
    .yt-card-body {
        padding: 20px;
    }
    
    .yt-placeholder-features {
        grid-template-columns: 1fr;
    }
    
    .yt-api-actions {
        flex-direction: column;
    }
    
    .yt-api-actions .yt-btn {
        width: 100%;
        justify-content: center;
    }
    
    .yt-kw-grid {
        grid-template-columns: 1fr;
    }
    
    .yt-tag {
        font-size: 11px;
        padding: 6px 12px;
        gap: 4px;
    }
    
    .t1, .t2, .t3 {
        font-size: 8px;
        padding: 2px 10px;
    }
    
    .vol-vh, .vol-h, .vol-m, .vol-l {
        font-size: 8px;
        padding: 2px 10px;
    }
    
    .yt-copy-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .yt-copy-all-btn,
    .yt-copy-col-btn {
        font-size: 9px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .yt-hero-title {
        font-size: 22px;
    }
    
    .yt-hero-subtitle {
        font-size: 14px;
    }
    
    .yt-hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .yt-tag {
        font-size: 10px;
        padding: 4px 10px;
        gap: 3px;
    }
    
    .t1, .t2, .t3 {
        font-size: 7px;
        padding: 2px 8px;
    }
    
    .vol-vh, .vol-h, .vol-m, .vol-l {
        font-size: 7px;
        padding: 2px 8px;
    }
}