/* ================================
   FLOAT CHECKER STYLES
   CS2G - Counter-Strike 2 Database
   ================================ */

/* Float Checker Hero */
.float-checker-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
    overflow: hidden;
}

.float-checker-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="none"/><circle cx="200" cy="150" r="60" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="400" r="80" fill="rgba(255,255,255,0.05)"/><circle cx="1000" cy="200" r="40" fill="rgba(255,255,255,0.1)"/></svg>') center/cover;
    z-index: 1;
}

.float-checker-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* Main Float Checker Section */
.float-checker-main {
    padding: 4rem 0;
    background: var(--background-color);
}

.float-checker-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Float Input Section */
.float-input-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.float-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    background: var(--background-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.float-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(74, 105, 255, 0.1);
}

.float-input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.float-input.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-help {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.input-help.error {
    color: #ef4444;
}

/* Float Analysis Results */
.float-results {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.float-results.show {
    opacity: 1;
    transform: translateY(0);
}

.float-display {
    text-align: center;
    margin-bottom: 2rem;
}

.float-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.float-condition {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.condition-fn { color: #10b981; }
.condition-mw { color: #3b82f6; }
.condition-ft { color: #f59e0b; }
.condition-ww { color: #ef4444; }
.condition-bs { color: #7c2d12; }

/* Float Visualization */
.float-visualization {
    margin: 2rem 0;
}

.float-scale {
    position: relative;
    height: 40px;
    background: linear-gradient(to right,
        #10b981 0%,
        #3b82f6 15%,
        #f59e0b 38%,
        #ef4444 76%,
        #7c2d12 100%);
    border-radius: 20px;
    margin: 1rem 0;
    overflow: hidden;
}

.float-marker {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
    transition: left 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.float-scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.scale-label {
    text-align: center;
    font-weight: 500;
}

/* Float Statistics */
.float-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Float Information Panel */
.float-info-panel {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.info-tab {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.info-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.info-tab:hover {
    color: var(--text-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.info-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Action Buttons */
.float-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.action-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-button.primary {
    background: var(--accent-color);
    color: #ffffff;
}

.action-button.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 105, 255, 0.3);
}

.action-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-button.secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Float History */
.float-history {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.history-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-history {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-history:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-float {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent-color);
}

.history-condition {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.history-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-state p {
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .float-checker-container {
        padding: 0 1rem;
    }

    .float-input-section,
    .float-results,
    .float-info-panel,
    .float-history {
        padding: 1.5rem;
    }

    .float-value {
        font-size: 2rem;
    }

    .float-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .float-actions {
        flex-direction: column;
    }

    .action-button {
        justify-content: center;
    }

    .info-tabs {
        overflow-x: auto;
        scroll-behavior: smooth;
    }

    .info-tab {
        white-space: nowrap;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .float-checker-main {
        padding: 2rem 0;
    }

    .float-stats {
        grid-template-columns: 1fr;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
