* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #FFD700;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #FFD700;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #FFA500;
    opacity: 0.9;
}

/* Input Section */
.input-section {
    background: #1a1a1a;
    padding: 30px;
    border: 2px solid #FFD700;
    border-radius: 15px;
    margin-bottom: 30px;
}

.keyword-input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFD700;
    font-size: 1.1rem;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.input-wrapper input {
    flex: 1;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #000;
    color: #FFD700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.input-wrapper input::placeholder {
    color: #666;
}

.check-button {
    padding: 15px 30px;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-button:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.check-button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reset-button {
    padding: 15px 25px;
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-button:hover {
    background: #FFD700;
    color: #000;
    transform: translateY(-2px);
}

/* API Options */
.api-options h3 {
    margin-bottom: 20px;
    color: #FFD700;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #FFD700;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #FFD700;
    background: #2d2d2d;
}

.checkbox-label input {
    accent-color: #FFD700;
}

/* Progress Section */
.progress-section {
    background: #1a1a1a;
    padding: 30px;
    border: 2px solid #333;
    border-radius: 15px;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-bottom: 20px;
    color: #FFA500;
    font-weight: bold;
    font-size: 1.1rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    background: #000;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 20px;
    color: #666;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

/* Results Section */
.results-section {
    background: #1a1a1a;
    padding: 30px;
    border: 2px solid #FFD700;
    border-radius: 15px;
    margin-bottom: 30px;
}

/* Score Card */
.score-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: #000;
    border-radius: 15px;
    border: 2px solid #333;
    gap: 40px;
}

.difficulty-score {
    text-align: center;
    flex: 1;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 4px solid #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
}

.score-label {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.keyword-display {
    color: #FFA500;
    font-size: 1.1rem;
    font-weight: bold;
}

.score-breakdown {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breakdown-label {
    color: #FFA500;
    font-weight: bold;
    min-width: 120px;
}

.breakdown-value {
    color: #FFD700;
    font-weight: bold;
    min-width: 80px;
}

.breakdown-bar {
    flex: 1;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    width: 0%;
    transition: width 1s ease;
}

/* Results Tabs */
.results-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.tab-button {
    padding: 12px 24px;
    background: #000;
    color: #FFD700;
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-button.active,
.tab-button:hover {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.metric-card {
    background: #000;
    padding: 30px 20px;
    border: 2px solid #333;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: #FFD700;
    transform: translateY(-5px);
}

.metric-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

.metric-label {
    color: #FFA500;
    font-weight: bold;
}

/* Difficulty Explanation */
.difficulty-explanation {
    background: #000;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #333;
}

.difficulty-explanation h4 {
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

.difficulty-levels {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: #1a1a1a;
}

.level-item.easy {
    border-left: 4px solid #00FF00;
}

.level-item.medium {
    border-left: 4px solid #FFA500;
}

.level-item.hard {
    border-left: 4px solid #FF4444;
}

.level-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.level-item.easy .level-dot { background: #00FF00; }
.level-item.medium .level-dot { background: #FFA500; }
.level-item.hard .level-dot { background: #FF4444; }

.level-text {
    color: #FFD700;
    font-weight: bold;
}

/* Trends Container */
.trends-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.trend-chart {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #333;
    min-height: 300px;
}

.trend-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trend-metric {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #333;
}

.trend-label {
    color: #FFA500;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.trend-value {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Competitors List */
.competitors-list {
    max-height: 400px;
    overflow-y: auto;
}

.competitor-item {
    background: #000;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.competitor-item:hover {
    border-color: #FFD700;
    transform: translateX(5px);
}

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

.competitor-domain {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}

.competitor-metrics {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.competitor-metric {
    background: #333;
    padding: 4px 12px;
    border-radius: 15px;
    color: #FFA500;
}

.competitor-title {
    color: #ccc;
    margin-bottom: 10px;
}

.competitor-url {
    color: #FFA500;
    font-size: 0.9rem;
    word-break: break-all;
}

/* Recommendations */
.recommendations-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recommendation-category {
    background: #000;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #333;
}

.recommendation-category h4 {
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

.recommendation-icon {
    color: #FFD700;
    font-size: 1.2rem;
    margin-top: 2px;
}

.recommendation-text {
    color: #FFD700;
    flex: 1;
}

/* Export Section */
.export-section {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.export-button {
    padding: 15px 30px;
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.export-button:hover {
    background: #FFD700;
    color: #000;
    transform: translateY(-2px);
}

.export-button.secondary {
    background: #333;
    border-color: #666;
}

.export-button.secondary:hover {
    background: #FFD700;
    border-color: #FFD700;
}

/* Comparison Section */
.comparison-section {
    background: #1a1a1a;
    padding: 30px;
    border: 2px solid #333;
    border-radius: 15px;
    margin-bottom: 30px;
}

.comparison-section h3 {
    color: #FFD700;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.comparison-item {
    background: #000;
    padding: 20px;
    border: 2px solid #333;
    border-radius: 10px;
    text-align: center;
}

.comparison-keyword {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.comparison-score {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.comparison-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.comparison-metric {
    text-align: center;
}

.comparison-metric-value {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}

.comparison-metric-label {
    color: #FFA500;
    font-size: 0.8rem;
}

/* Test Section */
.test-section {
    background: #1a1a1a;
    padding: 30px;
    border: 2px solid #333;
    border-radius: 15px;
    margin-bottom: 30px;
}

.test-section h3 {
    margin-bottom: 20px;
    color: #FFD700;
    text-align: center;
}

.test-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.test-button {
    padding: 12px 20px;
    background: #333;
    color: #FFD700;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-button:hover {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid #333;
    margin-top: 40px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .score-breakdown {
        width: 100%;
    }
    
    .trends-container {
        grid-template-columns: 1fr;
    }
    
    .recommendations-container {
        grid-template-columns: 1fr;
    }
    
    .results-tabs {
        flex-wrap: wrap;
    }
    
    .export-section {
        flex-direction: column;
    }
    
    .test-buttons {
        flex-direction: column;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
}
