/**
 * FPS Calculator Styles
 * StorageDiskPrices.com Dark Theme
 */

.fpsc-calculator {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0;
    color: #f1f5f9;
    line-height: 1.6;
}

/* Header - Green Gaming Theme */
.fpsc-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 12px 12px 0 0;
    color: white;
}

.fpsc-header__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fpsc-header__icon svg { width: 28px; height: 28px; }

.fpsc-header__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.fpsc-header__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.fpsc-header__subtitle strong { color: #fbbf24; }

/* Sections */
.fpsc-section {
    background: #1e293b;
    padding: 1.5rem;
    border-left: 1px solid #334155;
    border-right: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

.fpsc-section--advanced {
    padding: 1rem 1.5rem;
    background: #172033;
}

.fpsc-section__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.fpsc-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Search Box */
.fpsc-select-wrapper { position: relative; }

.fpsc-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.fpsc-search-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
}

.fpsc-search-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    background: #334155;
    border: 2px solid #475569;
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.fpsc-search-input:focus {
    outline: none;
    border-color: #10b981;
    background: #3b4a5e;
}

.fpsc-search-input::placeholder { color: #64748b; }

/* Dropdown */
.fpsc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0 0 10px 10px;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.fpsc-dropdown.active { display: block; }

.fpsc-dropdown__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #334155;
    transition: background 0.15s ease;
}

.fpsc-dropdown__item:last-child { border-bottom: none; }
.fpsc-dropdown__item:hover { background: #334155; }

.fpsc-dropdown__name { font-weight: 500; color: #f1f5f9; }
.fpsc-dropdown__specs { font-size: 0.8rem; color: #94a3b8; }

.fpsc-dropdown__score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fpsc-dropdown__score-bar {
    width: 60px;
    height: 6px;
    background: #475569;
    border-radius: 3px;
    overflow: hidden;
}

.fpsc-dropdown__score-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
}

.fpsc-dropdown__score-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    min-width: 28px;
}

.fpsc-dropdown__group {
    padding: 8px 16px;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

/* Selected Item Display */
.fpsc-selected-item {
    display: none;
    margin-top: 12px;
    padding: 14px 16px;
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    border-radius: 10px;
}

.fpsc-selected-item.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fpsc-selected-item__info { display: flex; flex-direction: column; }
.fpsc-selected-item__name { font-weight: 600; color: #f1f5f9; font-size: 1rem; }
.fpsc-selected-item__specs { font-size: 0.85rem; color: #6ee7b7; }

.fpsc-selected-item__remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #475569;
    border: none;
    border-radius: 6px;
    color: #f1f5f9;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fpsc-selected-item__remove:hover { background: #ef4444; }

/* Popular Quick Select */
.fpsc-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fpsc-popular__label { font-size: 0.8rem; color: #64748b; }

.fpsc-popular__btn {
    padding: 6px 12px;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fpsc-popular__btn:hover {
    background: #475569;
    color: #f1f5f9;
    border-color: #10b981;
}

/* Resolution Grid */
.fpsc-resolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.fpsc-resolution-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #334155;
    border: 2px solid #475569;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fpsc-resolution-btn:hover { border-color: #10b981; }

.fpsc-resolution-btn--active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.fpsc-resolution-btn--popular { border-color: #10b981; }

.fpsc-resolution-btn__badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    background: #10b981;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 10px;
    white-space: nowrap;
}

.fpsc-resolution-btn__res { font-size: 1.2rem; font-weight: 700; color: #f1f5f9; }
.fpsc-resolution-btn__pixels { font-size: 0.75rem; color: #10b981; }
.fpsc-resolution-btn__label { font-size: 0.7rem; color: #94a3b8; margin-top: 0.25rem; }

/* Quality Grid */
.fpsc-quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.fpsc-quality-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    background: #334155;
    border: 2px solid #475569;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fpsc-quality-btn:hover { border-color: #10b981; background: #3b4a5e; }

.fpsc-quality-btn--active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.fpsc-quality-btn__icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.fpsc-quality-btn__label { font-size: 0.9rem; font-weight: 600; color: #f1f5f9; }
.fpsc-quality-btn__desc { font-size: 0.7rem; color: #94a3b8; }

/* Advanced Options */
.fpsc-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.fpsc-advanced-toggle:hover { color: #f1f5f9; }

#fpsc-advanced-arrow { margin-left: auto; transition: transform 0.2s ease; }
.fpsc-advanced-toggle.active #fpsc-advanced-arrow { transform: rotate(180deg); }

.fpsc-advanced-options {
    padding: 1rem 0.75rem;
    border-top: 1px solid #334155;
}

.fpsc-advanced-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.fpsc-advanced-row:last-child { margin-bottom: 0; }

.fpsc-advanced-option { display: flex; flex-direction: column; gap: 0.5rem; }
.fpsc-advanced-option label { font-size: 0.85rem; color: #94a3b8; }
.fpsc-advanced-hint { font-size: 0.75rem; color: #64748b; }

.fpsc-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.fpsc-checkbox input { display: none; }

.fpsc-checkbox__mark {
    width: 20px;
    height: 20px;
    border: 2px solid #475569;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fpsc-checkbox input:checked + .fpsc-checkbox__mark {
    background: #10b981;
    border-color: #10b981;
}

.fpsc-checkbox input:checked + .fpsc-checkbox__mark::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.fpsc-checkbox__label { font-size: 0.9rem; color: #f1f5f9; }

.fpsc-select {
    padding: 10px 12px;
    background: #334155;
    border: 2px solid #475569;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.9rem;
    cursor: pointer;
}

.fpsc-select:focus { outline: none; border-color: #10b981; }

/* Generate Section */
.fpsc-generate-section {
    padding: 1.5rem;
    background: #1e293b;
    border-left: 1px solid #334155;
    border-right: 1px solid #334155;
    border-bottom: 1px solid #334155;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.fpsc-calculate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.fpsc-calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.fpsc-calculate-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.fpsc-generate-hint { margin: 0.75rem 0 0 0; font-size: 0.8rem; color: #64748b; }

/* Results Section */
.fpsc-results {
    margin-top: 1.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

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

.fpsc-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    flex-wrap: wrap;
    gap: 1rem;
}

.fpsc-results__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.fpsc-results__config { margin: 0.25rem 0 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.9); }

.fpsc-results__summary { text-align: right; }
.fpsc-results__avg-label { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.fpsc-results__avg-value { font-size: 2rem; font-weight: 700; }

/* Rating Bar */
.fpsc-rating-bar {
    padding: 1.25rem 1.5rem;
    background: #263245;
    border-bottom: 1px solid #334155;
}

.fpsc-rating-bar__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.fpsc-rating-bar__track {
    height: 12px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 33%, #eab308 50%, #10b981 100%);
    border-radius: 6px;
    position: relative;
}

.fpsc-rating-bar__indicator {
    position: absolute;
    top: -4px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #1e293b;
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left 0.5s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fpsc-rating-bar__text {
    margin: 0.75rem 0 0 0;
    font-size: 0.9rem;
    color: #f1f5f9;
    text-align: center;
}

/* Tabs */
.fpsc-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 1rem 1.5rem 0;
    background: #1e293b;
    overflow-x: auto;
}

.fpsc-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.fpsc-tab:hover { color: #f1f5f9; }

.fpsc-tab--active {
    color: #10b981;
    border-bottom-color: #10b981;
}

/* Games Container */
.fpsc-games-container { padding: 1.5rem; }

.fpsc-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.fpsc-game-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #263245;
    border-radius: 10px;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.fpsc-game-card:hover {
    border-color: #475569;
    transform: translateY(-2px);
}

.fpsc-game-card__info { flex: 1; }
.fpsc-game-card__name { font-weight: 600; color: #f1f5f9; font-size: 0.95rem; }
.fpsc-game-card__category { font-size: 0.75rem; color: #64748b; }

.fpsc-game-card__fps { text-align: right; }

.fpsc-game-card__fps-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.fpsc-game-card__fps-value--excellent { color: #10b981; }
.fpsc-game-card__fps-value--good { color: #84cc16; }
.fpsc-game-card__fps-value--medium { color: #fbbf24; }
.fpsc-game-card__fps-value--low { color: #f97316; }
.fpsc-game-card__fps-value--poor { color: #ef4444; }

.fpsc-game-card__fps-label { font-size: 0.7rem; color: #64748b; }

/* Resolution Compare */
.fpsc-compare-section {
    padding: 1.5rem;
    background: #172033;
    border-top: 1px solid #334155;
}

.fpsc-compare__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
}

.fpsc-resolution-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.fpsc-res-card {
    text-align: center;
    padding: 1rem;
    background: #263245;
    border-radius: 8px;
    border: 1px solid #334155;
}

.fpsc-res-card--active { border-color: #10b981; background: rgba(16, 185, 129, 0.1); }

.fpsc-res-card__label { font-size: 0.85rem; font-weight: 600; color: #f1f5f9; }
.fpsc-res-card__fps { font-size: 1.75rem; font-weight: 700; color: #10b981; margin: 0.25rem 0; }
.fpsc-res-card__status { font-size: 0.7rem; color: #64748b; }

/* Verdict */
.fpsc-verdict {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    margin: 0 1.5rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
}

.fpsc-verdict--warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.fpsc-verdict--danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.fpsc-verdict__icon { font-size: 2rem; }
.fpsc-verdict__title { margin: 0 0 0.25rem 0; font-size: 1.1rem; font-weight: 600; color: #f1f5f9; }
.fpsc-verdict__text { margin: 0; font-size: 0.9rem; color: #94a3b8; }

/* Tips */
.fpsc-tips {
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-top: 1px solid #334155;
}

.fpsc-tips__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #60a5fa;
}

.fpsc-tips__list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.fpsc-tips__list li { margin-bottom: 0.5rem; }
.fpsc-tips__list li:last-child { margin-bottom: 0; }
.fpsc-tips__list strong { color: #60a5fa; }

/* Share Section */
.fpsc-share {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #334155;
    flex-wrap: wrap;
}

.fpsc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fpsc-share-btn:hover { background: #3b4a5e; border-color: #64748b; }

.fpsc-share-btn--reddit { background: #ff4500; border-color: #ff4500; color: white; }
.fpsc-share-btn--reddit:hover { background: #ff5722; border-color: #ff5722; }

/* FAQ Section */
.fpsc-faq {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
}

.fpsc-faq__title { margin: 0 0 1.5rem 0; font-size: 1.25rem; font-weight: 700; color: #f1f5f9; }

.fpsc-faq__item { padding: 1.25rem 0; border-bottom: 1px solid #334155; }
.fpsc-faq__item:last-child { border-bottom: none; padding-bottom: 0; }

.fpsc-faq__question { margin: 0 0 0.75rem 0; font-size: 1rem; font-weight: 600; color: #f1f5f9; }
.fpsc-faq__answer { font-size: 0.9rem; color: #94a3b8; }
.fpsc-faq__answer p { margin: 0; }
.fpsc-faq__answer strong { color: #6ee7b7; }

/* Guide Section */
.fpsc-guide {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
}

.fpsc-guide__title { margin: 0 0 1.5rem 0; font-size: 1.25rem; font-weight: 700; color: #f1f5f9; }

.fpsc-guide__section { margin-bottom: 1.5rem; }
.fpsc-guide__section:last-child { margin-bottom: 0; }

.fpsc-guide__section h3 { margin: 0 0 0.75rem 0; font-size: 1rem; font-weight: 600; color: #6ee7b7; }
.fpsc-guide__section p { margin: 0 0 0.75rem 0; font-size: 0.9rem; color: #94a3b8; }
.fpsc-guide__section p:last-child { margin-bottom: 0; }
.fpsc-guide__section strong { color: #f1f5f9; }

.fpsc-guide__section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.fpsc-guide__section ul li { margin-bottom: 0.5rem; }

.fpsc-guide__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.fpsc-guide__table th {
    padding: 0.75rem;
    background: #334155;
    color: #f1f5f9;
    text-align: left;
    font-weight: 600;
}

.fpsc-guide__table td {
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
    color: #94a3b8;
}

.fpsc-guide__table tr:hover td { background: #263245; }

/* Responsive */
@media (max-width: 768px) {
    .fpsc-calculator { margin: 1rem; }
    .fpsc-header { flex-direction: column; text-align: center; }
    .fpsc-resolution-grid { grid-template-columns: repeat(2, 1fr); }
    .fpsc-quality-grid { grid-template-columns: repeat(3, 1fr); }
    .fpsc-games-grid { grid-template-columns: 1fr; }
    .fpsc-results__header { flex-direction: column; text-align: center; }
    .fpsc-results__summary { text-align: center; }
    .fpsc-tabs { justify-content: flex-start; }
    .fpsc-popular { justify-content: center; }
    .fpsc-share { justify-content: center; }
}
