* {
    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: 1400px;
    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;
}

.topic-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;
}

.generate-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;
}

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

.generate-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);
}

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

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.option-group select {
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #000;
    color: #FFD700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.option-group select:focus {
    outline: none;
    border-color: #FFD700;
}

.advanced-options h4 {
    margin-bottom: 15px;
    color: #FFD700;
}

.content-type-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;
}

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

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

.stat-label {
    color: #FFA500;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.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;
}

/* Visual Map Tab */
.visual-map-container {
    position: relative;
    min-height: 600px;
    background: #000;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 40px;
    overflow: hidden;
}

.central-topic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 30px 40px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    z-index: 10;
    min-width: 200px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clusters-visual {
    position: relative;
    width: 100%;
    height: 100%;
}

.cluster-node {
    position: absolute;
    background: #1a1a1a;
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 5;
}

.cluster-node:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    border-color: #FFA500;
}

.cluster-node.main {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-width: 3px;
}

.cluster-node.sub {
    background: #000;
    border-style: dashed;
    border-width: 1px;
}

.cluster-header {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cluster-subtopics {
    font-size: 0.9rem;
    color: #FFA500;
}

.cluster-connection {
    position: absolute;
    background: #FFD700;
    height: 2px;
    transform-origin: 0 0;
    z-index: 1;
}

/* Clusters Tab */
.clusters-list {
    display: grid;
    gap: 25px;
}

.cluster-detail {
    background: #000;
    border: 2px solid #333;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
}

.cluster-detail:hover {
    border-color: #FFD700;
    transform: translateY(-2px);
}

.cluster-title {
    color: #FFD700;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cluster-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFA500;
    font-size: 0.9rem;
}

.meta-value {
    color: #FFD700;
    font-weight: bold;
}

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

.subtopic-item {
    background: #1a1a1a;
    padding: 10px 15px;
    border-radius: 6px;
    border-left: 3px solid #FFD700;
    color: #FFA500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.subtopic-item:hover {
    background: #2d2d2d;
    border-left-color: #FFA500;
}

/* Content Plan Tab */
.content-plan {
    background: #000;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #333;
}

.content-overview {
    margin-bottom: 30px;
}

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

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

.content-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
}

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

.stat-value {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
}

.content-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-phase {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFA500;
}

.phase-header {
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.phase-tasks {
    color: #FFA500;
    font-size: 0.9rem;
}

/* SEO Strategy Tab */
.seo-strategy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

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

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.metric-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

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

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

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

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

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

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

.recommendations-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;
    flex-wrap: wrap;
}

.export-button {
    padding: 15px 25px;
    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;
}

/* 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;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .content-type-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-strategy {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .results-tabs {
        flex-direction: column;
    }
    
    .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;
    }
    
    .visual-map-container {
        padding: 20px;
        min-height: 400px;
    }
    
    .central-topic {
        padding: 20px;
        min-width: 150px;
        min-height: 150px;
        font-size: 1rem;
    }
}
