:root {
    --primary: #000000;
    --secondary: #8C1EE6;
    --text: #FFFFFF;
    --card-bg: #111111;
    --border: #333333;
}

.keyword-tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    color: var(--secondary);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tool-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.search-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #222222;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}

.btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #7a1ac9;
    transform: translateY(-2px);
}

.btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    display: none;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    color: var(--secondary);
    font-size: 1.8rem;
}

.keyword-display {
    background: #222222;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--secondary);
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.difficulty-bar {
    height: 12px;
    background: #333333;
    border-radius: 6px;
    margin: 1rem 0;
    overflow: hidden;
}

.difficulty-fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 6px;
    transition: width 1s ease;
}

.volume-chart {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    color: var(--secondary);
}

.chart-container {
    height: 300px;
    position: relative;
}

.country-volume {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.country-volume h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.country-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.country-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: #222222;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.country-item:hover {
    transform: translateY(-2px);
}

.country-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag {
    width: 20px;
    height: 15px;
    background: #444;
    border-radius: 2px;
}

.benefits-section {
    margin-top: 4rem;
}

.section-title {
    color: var(--secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.benefit-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.faq-section {
    margin-top: 4rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--secondary);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
    line-height: 1.6;
}

.faq-toggle {
    color: var(--secondary);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.loader {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(140, 30, 230, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--secondary);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #331111;
    border: 1px solid #662222;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 1rem;
}

.trend-up {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.trend-down {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.trend-stable {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 2.2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .country-list {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}