/* ==========================================
   🚀 KEYWORD EXPLORER UI STYLES (TRUE PREMIUM)
========================================== */
.dw-kx-container {
    max-width: 1050px; 
    margin: 60px auto; 
    font-family: 'Inter', -apple-system, system-ui, sans-serif; 
    color: #0f172a; 
    padding: 0 20px;
}

/* Header Section */
.dw-kx-header { text-align: center; margin-bottom: 50px; }
.dw-kx-badge { 
    display: inline-block; background: #f1f5f9; color: #3b82f6; padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; border: 1px solid #e2e8f0; 
}
.dw-kx-header h2 { font-size: 36px; font-weight: 800; margin: 0 0 15px 0; letter-spacing: -1px; }
.dw-kx-header p { font-size: 18px; color: #64748b; max-width: 650px; margin: 0 auto; line-height: 1.6; }

/* 🌟 PREMIUM SEARCH BOX (With Glowing Hover Effect) */
.dw-kx-search-box {
    display: flex; gap: 15px; background: #ffffff; padding: 12px; border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02); 
    margin-bottom: 50px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dw-kx-search-box:hover, .dw-kx-search-box:focus-within { 
    border-color: #bfdbfe; 
    box-shadow: 0 12px 30px -5px rgba(37, 99, 235, 0.15); 
    transform: translateY(-2px);
}
.dw-kx-input-wrapper { flex-grow: 1; display: flex; align-items: center; padding: 0 15px; gap: 12px; }
.dw-kx-search-icon { font-size: 22px; color: #3b82f6; }
.dw-kx-input-wrapper input { width: 100%; border: none; outline: none; font-size: 18px; color: #0f172a; background: transparent; font-weight: 500;}
.dw-kx-input-wrapper input::placeholder { color: #94a3b8; font-weight: 400;}

/* Primary Explore Button */
.dw-kx-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; border: none; padding: 0 35px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; height: 55px; min-width: 170px;
}
.dw-kx-btn-primary:hover { 
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a); 
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); 
    transform: translateY(-2px);
}
.dw-kx-spinner { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results Header & Copy Button */
.dw-kx-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; padding-bottom: 20px; }
.dw-kx-results-header h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px;}

/* Smart Soft Button (Copy All) */
.dw-kx-btn-secondary { 
    background-color: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.dw-kx-btn-secondary:hover { 
    background-color: #2563eb; color: #ffffff; border-color: #2563eb; box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25); transform: translateY(-2px);
}

/* 🌟 GRID & PREMIUM CARDS (THE BOX EFFECTS! Left Align) */
.dw-kx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.dw-kx-category-card { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 16px; 
    padding: 30px; 
    display: flex; 
    flex-direction: column;
    align-items: flex-start; /* Left Alignment for modern look */
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Super smooth bounce effect */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}
/* 🔥 THE LIFT & GLOW HOVER EFFECT 🔥 */
.dw-kx-category-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.12); /* Deep premium shadow */
    transform: translateY(-8px); /* Clear lifting effect */
}

.dw-kx-cat-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.dw-kx-cat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 22px; border: 1px solid rgba(0,0,0,0.03); }
.dw-kx-cat-header h4 { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }

/* Premium Tag Clouds */
.dw-kx-tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.dw-kx-tag { 
    background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s ease; cursor: pointer; 
}
.dw-kx-tag:hover { 
    border-color: #3b82f6; color: #2563eb; background: #eff6ff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.1);
}

/* ==========================================
   📱 4-STEP BULLETPROOF MEDIA QUERIES
========================================== */

/* 1. Tablet Landscape & iPad Pro (769px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .dw-kx-container { margin: 50px auto; padding: 0 25px; }
    .dw-kx-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* 2. Tablet Portrait (601px to 768px) */
@media (max-width: 768px) and (min-width: 601px) {
    .dw-kx-container { margin: 40px auto; padding: 0 20px; }
    .dw-kx-header h2 { font-size: 32px; }
    .dw-kx-header p { font-size: 16px; }
    .dw-kx-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .dw-kx-category-card { padding: 25px; }
}

/* 3. Large Mobile & Phablets (481px to 600px) */
@media (max-width: 600px) and (min-width: 481px) {
    .dw-kx-container { margin: 35px auto; padding: 0 15px; }
    .dw-kx-header h2 { font-size: 28px; line-height: 1.3; }
    .dw-kx-search-box { flex-direction: column; padding: 15px; }
    .dw-kx-input-wrapper { padding: 5px 0; margin-bottom: 10px; }
    .dw-kx-btn-primary { width: 100%; height: 50px;}
    .dw-kx-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Centered Layout for Smaller Screens */
    .dw-kx-category-card { padding: 30px 25px; align-items: center; text-align: center; }
    .dw-kx-cat-header { flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .dw-kx-results-header { flex-direction: column; gap: 15px; align-items: flex-start; }
    .dw-kx-btn-secondary { width: 100%; justify-content: center; }
}

/* 4. Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .dw-kx-container { margin: 30px auto; padding: 0 12px; }
    .dw-kx-header h2 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; }
    .dw-kx-header p { font-size: 15px; }
    .dw-kx-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 12px; }
    
    .dw-kx-search-box { flex-direction: column; padding: 15px; }
    .dw-kx-input-wrapper { padding: 5px 0; margin-bottom: 10px; }
    .dw-kx-input-wrapper input { font-size: 16px; }
    .dw-kx-btn-primary { width: 100%; height: 50px; font-size: 15px;}

    .dw-kx-grid { grid-template-columns: 1fr; gap: 16px; }
    
    /* Ultimate Mobile Center Magic */
    .dw-kx-category-card { padding: 25px 15px; align-items: center; text-align: center; }
    .dw-kx-cat-header { flex-direction: column; gap: 10px; margin-bottom: 15px; }
    .dw-kx-cat-icon { width: 44px; height: 44px; font-size: 20px; }
    .dw-kx-cat-header h4 { font-size: 18px; }
    
    .dw-kx-results-header { flex-direction: column; gap: 15px; align-items: flex-start; }
    .dw-kx-btn-secondary { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }
}