/* components.css - Styly komponent */

/* Model Cards */
.model-card {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.model-name {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.model-type {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Model Badge - základní styly */
.model-badge {
    background: #f44336;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.model-badge.active {
    background: #4caf50;
}

/* Model Badge - pozicování pouze v kartách */
.model-card .model-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Specs */
.specs {
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

.spec-label {
    color: #aaa;
}

.spec-value {
    color: #fff;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    background: #2a2a2a;
    height: 8px;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

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

/* Info Cards */
.info-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #333;
}

/* Analyzer Components */
.analyzer {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 30px;
    margin: 50px 0;
}

.model-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.model-btn {
    background: #1a1a1a;
    border: 2px solid #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.model-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.model-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

/* File Upload */
.file-upload-area {
    background: #1a1a1a;
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #1f1f1f;
}

.file-upload-area.drag-over {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

/* Files List */
.files-list {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background: #2a2a2a;
    border-radius: 8px;
}

.file-info {
    flex: 1;
}

.file-name {
    color: #fff;
    font-weight: 500;
}

.file-stats {
    color: #999;
    font-size: 0.9rem;
}

.remove-file {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Result Cards */
.visual-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.result-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.result-title {
    color: #999;
    margin-bottom: 10px;
    font-size: 1rem;
}

.result-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.result-subtitle {
    color: #aaa;
    font-size: 0.9rem;
}

/* Battery Visualization */
.battery-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
}

.battery {
    width: 100%;
    height: 100px;
    background: #1a1a1a;
    border: 3px solid #444;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.battery-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transition: all 0.5s ease;
}

.battery-fill.good {
    background: linear-gradient(90deg, #4caf50 0%, #66bb6a 100%);
}

.battery-fill.warning {
    background: linear-gradient(90deg, #ff9800 0%, #ffa726 100%);
}

.battery-fill.danger {
    background: linear-gradient(90deg, #f44336 0%, #ef5350 100%);
}

.battery-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Time Visualization */
.time-visualization {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.time-blocks {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.time-block {
    width: 60px;
    height: 60px;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.time-block.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.time-block.used {
    background: #444;
    opacity: 0.5;
}

/* Percentage Items */
.percentage-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
}

.percentage-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: #444;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.warning-box h3 {
    color: #ff9800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Example Boxes */
.example-box {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.example-bad {
    border-left: 4px solid #f44336;
}

.example-good {
    border-left: 4px solid #4caf50;
}

/* Tip Cards */
.tip-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    border-color: #667eea;
}

.tip-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

/* Alerts */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #ff9800;
    color: #ff9800;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    color: #f44336;
}

/* Evolution Components */
.evolution-container {
    margin-top: 40px;
}

.timeline-container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.chart-container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    height: 350px;
}

.comparison-table-container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.comparison-table th {
    background: #2a2a2a;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Project Type Selector */
.project-type-selector {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
}

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

.project-type-option {
    cursor: pointer;
}

.project-type-option input[type="radio"] {
    display: none;
}

.project-type-card {
    background: #2a2a2a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.project-type-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.project-type-option input[type="radio"]:checked + .project-type-card,
.project-type-card.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
}

.project-type-icon {
    font-size: 2rem;
}

.project-type-label {
    font-weight: 600;
    color: #fff;
}

.project-type-desc {
    font-size: 0.85rem;
    color: #999;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Behavior Section Styles */
.behavior-modes {
    margin-top: 30px;
}

.mode-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.mode-indicator {
    min-width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.mode-info h4 {
    color: #fff;
    margin-bottom: 10px;
}

.mode-info ul {
    list-style: none;
    padding: 0;
    color: #aaa;
}

.mode-info li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.mode-info li:before {
    content: "•";
    position: absolute;
    left: 0;
}

.realistic-estimates {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
}

.realistic-scenarios {
    margin-top: 30px;
}

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

.scenario-box {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
}

.scenario-box h5 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.scenario-box ul {
    list-style: none;
    padding: 0;
}

.scenario-box li {
    margin-bottom: 10px;
    color: #aaa;
}

.token-math {
    font-size: 0.95rem;
}

.token-math p {
    margin-bottom: 8px;
}

/* Detailed Stats Update */
.detailed-stats {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #aaa;
}

.stat-value {
    color: #fff;
    font-weight: 500;
}
