/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    margin-bottom: 40px;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-theme {
    padding: 12px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #4a5568;
    color: #e2e8f0;
    border: 2px solid #718096;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme:hover {
    background: #2d3748;
    border-color: #4299e1;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Main content */
main {
    background: #2d3748;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #e2e8f0;
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Status card */
.status-card {
    background: #4a5568;
    border: 2px solid #718096;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.status-card.success {
    background: #2f855a;
    border-color: #68d391;
    color: #f0fff4;
}

.status-card.error {
    background: #c53030;
    border-color: #fc8181;
    color: #fed7d7;
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: #4a5568;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card[data-level="1"] {
    border-left: 4px solid #68d391;
}

.feature-card[data-level="2"] {
    border-left: 4px solid #4299e1;
}

.feature-card[data-level="3"] {
    border-left: 4px solid #ed8936;
}

.feature-card[data-level="4"] {
    border-left: 4px solid #9f7aea;
}

.feature-card h3 {
    color: #e2e8f0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #a0aec0;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.task-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #718096;
}

.task-info span {
    font-size: 0.85rem;
    color: #cbd5e0;
    background: rgba(113, 128, 150, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
}

.task-info .duration {
    color: #68d391;
}

.task-info .tasks {
    color: #4299e1;
}

/* Interactive section */
.interactive-section {
    text-align: center;
}

/* Git command display */
.git-command-display {
    background: #1a202c;
    border: 2px solid #4a5568;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.git-command {
    font-family: 'Courier New', monospace;
}

.git-command code {
    background: #2d3748;
    color: #68d391;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
    border-left: 4px solid #4299e1;
}

.git-command p {
    color: #a0aec0;
    font-style: italic;
    margin: 0;
    font-size: 0.95rem;
}

/* Level commands display */
.level-commands h4 {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.commands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.command-item {
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.2s ease;
}

.command-item:hover {
    transform: translateY(-2px);
    border-color: #4299e1;
}

.command-item code {
    background: #1a202c;
    color: #68d391;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    border-left: 3px solid #4299e1;
}

.command-item p {
    color: #a0aec0;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Command buttons */
.command-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-git {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #4a5568;
    color: #e2e8f0;
    border: 2px solid #718096;
}

.btn-git:hover {
    background: #2d3748;
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ed8936;
    color: white;
}

.btn-secondary:hover {
    background: #dd6b20;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Light theme (when toggled) */
body.light-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
}

body.light-theme main {
    background: white;
    color: #333;
}

body.light-theme h2 {
    color: #4a5568;
}

body.light-theme .status-card {
    background: #f7fafc;
    border-color: #e2e8f0;
    color: #2d3748;
}

body.light-theme .status-card.success {
    background: #f0fff4;
    border-color: #68d391;
    color: #22543d;
}

body.light-theme .status-card.error {
    background: #fed7d7;
    border-color: #fc8181;
    color: #742a2a;
}

body.light-theme .feature-card {
    background: #f8f9fa;
}

body.light-theme .feature-card h3 {
    color: #4a5568;
}

body.light-theme .feature-card p {
    color: #718096;
}

body.light-theme .task-info {
    border-top-color: #e2e8f0;
}

body.light-theme .task-info span {
    background: rgba(226, 232, 240, 0.3);
    color: #4a5568;
}

body.light-theme .task-info .duration {
    color: #22543d;
}

body.light-theme .task-info .tasks {
    color: #2c5282;
}

body.light-theme .git-command-display {
    background: #f8f9fa;
    border-color: #e2e8f0;
}

body.light-theme .git-command code {
    background: #e2e8f0;
    color: #22543d;
    border-left-color: #3182ce;
}

body.light-theme .git-command p {
    color: #4a5568;
}

body.light-theme .level-commands h4 {
    color: #4a5568;
}

body.light-theme .command-item {
    background: #f8f9fa;
    border-color: #e2e8f0;
}

body.light-theme .command-item:hover {
    border-color: #3182ce;
}

body.light-theme .command-item code {
    background: #e2e8f0;
    color: #22543d;
    border-left-color: #3182ce;
}

body.light-theme .command-item p {
    color: #4a5568;
}

body.light-theme .btn-git {
    background: #f7fafc;
    color: #2d3748;
    border-color: #e2e8f0;
}

body.light-theme .btn-git:hover {
    background: #edf2f7;
    border-color: #3182ce;
}

body.light-theme .btn-theme {
    background: #f7fafc;
    color: #2d3748;
    border-color: #e2e8f0;
}

body.light-theme .btn-theme:hover {
    background: #edf2f7;
    border-color: #3182ce;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .header-buttons {
        justify-content: center;
    }
    
    main {
        padding: 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .command-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .btn-git {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .git-command-display {
        padding: 15px;
    }
    
    .git-command code {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}
