/* 
    Game Performance Analyzer - Stylesheet
    Simple, Dark Theme, Responsive
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary-color: #00d1ff; /* Accent Blue */
    --hover-color: #00a8cc;
    --text-main: #ffffff;
    --text-dim: #b3b3b3;
    --danger: #ff4d4d;
    --success: #4dff88;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #1a1a1a;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(18,18,18,0.8), rgba(18,18,18,0.8)), 
                url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Analyzer Section */
.analyzer-section {
    padding: 60px 0;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 600px;
    margin: 0 auto 40px;
}

.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group select {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
    outline: none;
}

.form-group select:focus {
    border-color: var(--primary-color);
}

.btn-calculate {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.2s;
}

.btn-calculate.btn-nvidia {
    background-color: #76b900;
    color: #fff;
}

.btn-calculate.btn-amd {
    background-color: #ed1c24;
    color: #fff;
}

.btn-calculate:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.btn-calculate.btn-nvidia:hover {
    background-color: #76b900;
}

.btn-calculate.btn-amd:hover {
    background-color: #ed1c24;
}


/* Result Section */
.result-card {
    background: #252525;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #333;
    animation: fadeIn 0.5s ease-in;
}

.hidden {
    display: none;
}

.fps-display {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.fps-display small {
    font-size: 1.5rem;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 1s ease-in-out;
}

.suggestion-box {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 209, 255, 0.1);
    border-left: 4px solid var(--primary-color);
    text-align: left;
}

/* Specs Summary Styling */
.specs-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px dashed #444;
}

.specs-summary p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 5px 0;
    text-align: left;
}

.specs-summary span {
    color: var(--primary-color);
    font-weight: bold;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Hidden Utility */
.hidden {
    display: none !important;
}

/* Brand Selector Styling */
.brand-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #2a2a2a;
    padding: 5px;
    border-radius: 8px;
}

.brand-option {
    flex: 1;
    text-align: center;
}

.brand-option input {
    display: none;
}

.brand-label {
    display: block;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    color: var(--text-dim);
    transition: 0.3s;
}

#brandNvidia:checked + .brand-label {
    background-color: #76b900 !important;
    color: #fff !important;
}

#brandAmd:checked + .brand-label {
    background-color: #ed1c24 !important;
    color: #fff !important;
}

#brandNvidia:checked + .brand-label:hover,
#brandAmd:checked + .brand-label:hover {
    filter: brightness(1.1);
}



/* Tips Section */



.tips-section {
    padding: 60px 0;
}

.tips-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

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

.tip-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    transition: 0.3s;
}

.tip-item:hover {
    transform: translateY(-5px);
    border: 1px solid var(--primary-color);
}

.tip-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer */
footer {
    padding: 40px 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul li {
        margin: 0 10px;
    }
}
