@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap");

:root {
    --dark-bg: #121212;
    --darker-bg: #1a1a1a;
    --primary: #5caaa0;
    --secondary: #4a8c84;
    --text: #ffffff;
    --text-muted: #888888;
    --card-shadow: rgba(92, 170, 160, 0.1);
    --text-primary: var(--text);
    --text-secondary: var(--text-muted);
    --accent-color: var(--primary);
    --accent-color-transparent: rgba(92, 170, 160, 0.1);
    --card-bg: var(--darker-bg);
    --card-bg-secondary: #242424;
    --border-color: rgba(92, 170, 160, 0.2);
    --hover-shadow: 0 8px 16px rgba(92, 170, 160, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background-color: var(--darker-bg);
    padding: 0.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.15rem 0;
    gap: 1rem;
}

.site-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo.mirror {
    transform: scaleX(-1);
}

.site-name {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo a:hover .site-logo {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
    padding: 0 1rem;
}

.nav-links li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1rem;
    width: 1px;
    background-color: var(--primary);
    opacity: 0.3;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 0.15rem 0;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--secondary);
    box-shadow: 0 4px 12px var(--card-shadow);
}

/* Footer */
footer {
    text-align: center;
    padding: 0.5rem 2rem;
    background-color: var(--darker-bg);
    margin-top: 2rem;
}

.affiliate-disclaimer {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Matrix background styles */
canvas#matrixBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.23; /* Slightly more visible effect */
}

/* Update Content Sections */
.featured-content h2 {
    text-align: center;
    max-width: 800px; /* Optional: limit the width for better readability */
    margin: 0 auto; /* Center the element if max-width is used */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .socials-content {
        padding: 2rem 1rem;
    }

    .social-links {
        grid-template-columns: 1fr;
    }
}

/* Content Sections */
.featured-content {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background-color: var(--darker-bg);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(92, 170, 160, 0.1);
    box-shadow: 0 4px 12px var(--card-shadow);
    text-align: center;
}

.content-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px var(--card-shadow);
}

.content-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.content-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Retailer Prices Styles */
.retailer-prices {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.retailer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem;
    margin: 0;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--darker-bg);
    transition: all 0.2s;
    border: 1px solid transparent;  /* Add transparent border by default */
}

/* Change to border hover effects */
.retailer-link.amazon:hover {
    border-color: rgba(255, 153, 0, 0.5);  /* Amazon orange border */
}

.retailer-link.ebay:hover {
    border-color: rgba(255, 0, 0, 0.5);  /* eBay red border */
}

.retailer-logo {
    width: 12px;
    height: 12px;
    margin: 0;
}

.retailer-name {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Specific retailer styles */
.retailer-link.bestbuy:hover {
    border-color: #fff200;
}

/* Section Headers */
.featured-content h2 {
    color: var(--primary);
    font-size: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 2rem;
    display: inline-block;
}

/* YouTube icon styles */
.youtube-link {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.youtube-link a {
    display: flex;
    align-items: center;
    padding: 0;
}

.youtube-icon {
    height: 24px;
    width: auto;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.youtube-icon:hover {
    transform: scale(1.1);
}

/* Update mobile styles for YouTube icon */
@media (max-width: 768px) {
    .youtube-link {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Filter Styles */
.filter-container {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.search-wrapper {
    flex: 1;
}

.filter-dropdown {
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--darker-bg);
    border: 1px solid rgba(92, 170, 160, 0.2);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
}

.filter-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background-color: var(--darker-bg);
    border: 1px solid rgba(92, 170, 160, 0.2);
    border-radius: 8px;
    padding: 1rem;
    min-width: 300px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
}

.filter-dropdown.active .filter-menu {
    display: block;
}

.filter-section {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(92, 170, 160, 0.1);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs input {
    flex: 1;
    padding: 0.5rem;
    background-color: var(--dark-bg);
    border: 1px solid rgba(92, 170, 160, 0.2);
    border-radius: 4px;
    color: var(--text);
}

.price-inputs input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Update brand toggle styles to fit in dropdown */
.brand-toggle {
    width: 100%;
}

.brand-toggle-label {
    justify-content: space-between;
    width: 100%;
}

/* SEO Header */
.seo-header {
    text-align: center;
     color: var(--accent-color) !important;
    font-size: 2rem;
    margin: 2rem auto 1rem;
    padding: 0 1rem;
    max-width: 1200px;
    line-height: 1.3;
    font-weight: 700;
}

@media (max-width: 768px) {
    .seo-header {
        font-size: 1.5rem;
        margin: 1.5rem auto;
    }
}

/* SEO Description */
.seo-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .seo-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* GPU Table Styles */
.gpu-table-container {
    overflow-x: auto;
    margin: 0.5rem auto;
    border-radius: 8px;
    background: var(--darker-bg);
    box-shadow: 0 4px 12px var(--card-shadow);
    max-width: 900px;
}

.gpu-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: "Arial", sans-serif;
}

.gpu-table th,
.gpu-table td {
    padding: 0.3rem;
    border-bottom: 1px solid rgba(92, 170, 160, 0.1);
    text-align: center;
    vertical-align: middle;
}

.gpu-table th {
    background-color: rgba(92, 170, 160, 0.1);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.gpu-table th,
.gpu-table th a {
    color: var(--primary);
}

.gpu-table tbody tr {
    transition: all 0.3s ease;
}

.gpu-table tbody tr:hover {
    background-color: rgba(92, 170, 160, 0.05);
}

.gpu-table td {
    text-align: center;
    color: var(--primary);
    font-weight: bold;
}
.gpu-table td:first-child {
    color: var(--text);
    font-weight: normal;
    padding-left: 2rem;
    text-align: left;
}

.progress-loader {
    height: 4px;
    /* background-color: rgba(5, 114, 206, 0.2); */
    background-color: var(--card-shadow);
    width: 100%;
    overflow: hidden;
    margin: 5px 0;
}

.progress-loader > .loader {
    width: 100%;
    height: 100%;
    /* background-color: rgb(5, 114, 206); */
    background-color: var(--primary);
    animation: indeterminateAnimation 1s infinite linear;
    transform-origin: 0% 50%;
}

@keyframes indeterminateAnimation {
    0% {
        transform: translateX(0) scaleX(0);
    }
    40% {
        transform: translateX(0) scaleX(0.4);
    }
    100% {
        transform: translateX(100%) scaleX(0.5);
    }
}

.retailer-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.15rem;
    background: none;
}

.retailer-logo {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* Animation for price updates */
@keyframes priceUpdate {
    0% {
        background-color: rgba(92, 170, 160, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

.price-updated {
    animation: priceUpdate 1s ease;
}

/* Adjust price column width */
.gpu-table td:last-child {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

/* Table Header */
.table-header {
    text-align: center;
    color: var(--primary);
    font-size: 1.6rem;
    margin: 0.5rem auto 0.5rem;
    padding: 0 1rem;
    max-width: 900px;
    line-height: 1.3;
    font-weight: 700;
}

@media (max-width: 768px) {
    .table-header {
        font-size: 1.3rem;
        margin: 1.5rem auto 0.5rem;
    }
}

/* Search input styles */
#gpuSearch {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    background-color: var(--darker-bg);
    border: 1px solid rgba(92, 170, 160, 0.2);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s ease;
}

#gpuSearch:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(92, 170, 160, 0.1);
}

#gpuSearch::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Update filter container to match search box height */
.filter-btn {
    height: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
}

/* Brand Toggle Styles */
.brand-toggle {
    width: 100%;
    padding: 0.5rem;
}

.brand-toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    background-color: var(--dark-bg);
    border-radius: 8px;
}

.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--darker-bg);
    border-radius: 15px;
    border: 1px solid rgba(92, 170, 160, 0.2);
    transition: all 0.3s ease;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.brand-toggle-checkbox:checked + .brand-toggle-label .toggle-slider:before {
    transform: translateX(30px);
}

.nvidia,
.amd {
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nvidia {
    background-color: var(--primary);
    color: var(--text);
}

.amd {
    color: var(--text-muted);
}

.brand-toggle-checkbox:checked + .brand-toggle-label .nvidia {
    background-color: transparent;
    color: var(--text-muted);
}

.brand-toggle-checkbox:checked + .brand-toggle-label .amd {
    background-color: var(--primary);
    color: var(--text);
}

/* Price Range Slider Styles */
.price-range {
    width: 100%;
    padding: 0 0.5rem;
}

.price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--primary);
    outline: none;
    margin: 1rem 0;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Hide the checkbox completely */
.brand-toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Price Range Slider Styles */
.multi-range {
    position: relative;
    height: 30px;
}

.multi-range input[type="range"] {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    pointer-events: none;
    background: none;
    outline: none;
    margin: 0;
}

/* Hide the track for the upper range slider */
.multi-range .upper::-webkit-slider-runnable-track {
    background: none;
}

.multi-range .upper::-moz-range-track {
    background: none;
}

/* Style the track for the lower range slider */
.multi-range .lower::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--primary);
    border: none;
    border-radius: 2px;
}

.multi-range .lower::-moz-range-track {
    width: 100%;
    height: 4px;
    background: var(--primary);
    border: none;
    border-radius: 2px;
}

/* Style the thumbs for both sliders */
.multi-range input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--text);
    cursor: pointer;
    margin-top: -7px;
    transition: all 0.3s ease;
    z-index: 2;
}

.multi-range input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Active track color */
.multi-range .lower::-webkit-slider-runnable-track {
    background: var(--primary);
}

.multi-range .lower::-moz-range-track {
    background: var(--primary);
}

/* Hover effects */
.multi-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.multi-range input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
}

/* Price values display */
.price-values {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Brand Button Styles */
.brand-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.brand-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(92, 170, 160, 0.2);
    border-radius: 8px;
    background: var(--dark-bg);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.brand-btn.active {
    background: var(--primary);
    color: var(--text);
    border-color: var(--primary);
}

.brand-btn:hover {
    border-color: var(--primary);
}

.brand-btn.nvidia.active {
    background: var(--primary);
}

.brand-btn.amd.active {
    background: var(--primary);
}

/* Add spacing between tables */
#nvidia {
    margin-bottom: 2rem; /* Add space after NVIDIA table */
}

/* Or alternatively, add space before AMD table */
#amd {
    margin-top: 2rem; /* Add space before AMD table */
}

/* Brand header styles */
.gpu-table .brand-header th {
    padding: 0.5rem 0;
    background-color: var(--darker-bg);
    border-bottom: none;
    line-height: 1;
    height: 55px;
    text-align: center; /* Center cell content */
    vertical-align: middle; /* Center vertically */
}

/* Base logo styles */
.gpu-table .brand-header img.brand-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(0.7);
    transition: filter 0.3s ease;
    display: inline-block; /* Use inline-block instead of block */
}

/* Make NVIDIA logo larger */
.gpu-table .brand-header img[alt="NVIDIA"].brand-logo {
    height: 45px;
}

/* Hover effect */
.gpu-table .brand-header:hover img.brand-logo {
    filter: brightness(0) invert(1);
}

/* Sortable table styles */
.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(92, 170, 160, 0.2);
}

/* Add subtle arrow to all sortable columns by default */
.sortable::after {
    content: ' ⇅';
    color: var(--text-muted);
    opacity: 0.5;
    font-size: 0.8em;
}

.sortable.asc::after {
    content: ' ⇑';
    color: var(--primary);
    opacity: 1;
}

.sortable.desc::after {
    content: ' ⇓';
    color: var(--primary);
    opacity: 1;
}

/* Value score styles */
.value-score {
    font-weight: bold;
}

.value-score.best {
    color: #00FF7F;  /* Spring green - brightest */
}

.value-score.good {
    color: #32CD32;  /* Lime green */
}

.value-score.average {
    color: #228B22;  /* Forest green */
}

.value-score.below {
    color: #009688;  /* Softer green */
}

/* Mobile table styles */
@media screen and (max-width: 768px) {
    .gpu-table {
        font-size: 0.85rem;
    }

    /* Smaller headers and sort arrows on mobile */
    .gpu-table th {
        font-size: 0.7rem;
    }

    .sortable::after {
        font-size: 0.6em;
        margin-left: 1px;
    }

    .gpu-table td, 
    .gpu-table th {
        padding: 0.5rem 0.3rem;
    }

    .retailer-logo {
        height: 16px;  /* Make retailer logos smaller */
    }

    .value-score {
        font-size: 0.85rem;  /* Adjust value score size */
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .gpu-table {
        font-size: 0.75rem;  /* Further reduce font size */
    }

    .gpu-table td, 
    .gpu-table th {
        padding: 0.4rem 0.2rem;  /* Minimal padding */
    }

    .retailer-logo {
        height: 14px;  /* Even smaller logos */
    }
}

/* Table alignment fixes */
.gpu-table td,
.gpu-table th {
    text-align: center;
}

/* Fix model column alignment after hiding RX/RTX */
.gpu-table td:first-child {
    text-align: center !important;
    padding-left: 0;  /* Remove left padding to help centering */
}

/* Prevent header text from wrapping */
.gpu-table th.sortable {
    white-space: nowrap;
    padding: 0.4rem 0.2rem;  /* Reduced padding to help fit */
}

/* Add specific styling for listings cell */
.listings-cell {
    display: flex;
    gap: 0.25rem;  /* Control spacing between retailers here */
    align-items: center;
    padding: 0.2rem;
    min-width: 0;  /* Allow cell to shrink */
}

.gpu-guides {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.guide-section {
    margin: 30px 0;
}

.guide-section h2 {
    font-size: 2rem;
    color: var(--primary) !important;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.guide-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.guide-section h3 {
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    margin: 25px 0 15px;
    padding: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-color-transparent), transparent);
    border-bottom: 2px solid var(--accent-color);
}

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

.guide-grid article {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.guide-grid article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--accent-color-transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--accent-color);
}

.guide-grid article:hover::before {
    opacity: 0.1;
}

.guide-grid h4 {
    color: var(--accent-color) !important;
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.guide-grid h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.guide-grid article:hover h4::after {
    transform: scaleX(1);
}

.guide-grid p {
    color: var(--text-secondary) !important;
    line-height: 1.6;
    margin-top: 10px;
}

/* Highlight GPU names and prices */
.guide-grid p strong,
.guide-grid p span.gpu-name {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.guide-grid p span.gpu-price {
    color: var(--accent-color) !important;
    font-weight: 500;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .gpu-guides {
        margin: 20px;
        padding: 15px;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .guide-section h3 {
        font-size: 1.2rem;
    }

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

.gpu-features {
    margin-top: 40px;
}

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

.guide-grid a.gpu-link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.guide-grid a.gpu-link:hover {
    background: var(--accent-color-transparent);
}

.guide-grid a.gpu-link:hover .gpu-name {
    color: var(--primary) !important;
}

.gpu-guides > h2 {
    font-size: 2rem;
    color: var(--primary) !important;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.gpu-guides > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.gpu-popup {
    position: fixed;  /* Changed from absolute to fixed */
    background: var(--darker-bg);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(92, 170, 160, 0.2);
    z-index: 9999;  /* Ensure it's above other elements */
    opacity: 0;
    visibility: hidden;  /* Use visibility instead of pointer-events */
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.gpu-popup.visible {
    opacity: 1;
    visibility: visible;
}

/* Add debug outline to help see positioning */
.gpu-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid red;
    pointer-events: none;
    opacity: 0.1;
}

.gpu-popup h3 {
    color: var(--primary);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 5px;
}

.popup-section {
    padding: 12px;
}

.popup-summary {
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
    font-size: 0.9em;
}

.popup-section h4 {
    color: var(--primary);
    margin: 12px 0 8px;
    font-size: 0.95em;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 4px;
}

.popup-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-section li {
    margin: 4px 0;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.popup-section li span {
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 6px;
}

.games-list {
    margin-left: 12px !important;
    margin-top: 4px !important;
}

.games-list li {
    font-size: 0.8em;
    color: var(--text-muted);
}

.gpu-name {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-icon {
    font-size: 12px !important;  /* Reduced from 16px */
    color: var(--primary);
    cursor: help;
    opacity: 0.7;
    transition: opacity 0.2s;
    vertical-align: super;  /* Make it appear like a superscript */
    margin-left: 2px;  /* Small gap from the text */
}

.info-icon:hover {
    opacity: 1;
}

/* Optional: You could also use a more modern icon */
/* Using a material-icons or font-awesome icon instead of ⓘ */

.gpu-compare {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    text-align: center;
}

.gpu-col {
    flex: 1;
    padding: 10px;
    line-height: 1.6;
}

.gpu-col.vs {
    flex: 0.2;
    color: var(--primary);
    font-weight: bold;
}

.winner {
    text-align: center;
    margin-top: 10px;
    padding: 5px;
    background: var(--accent-color-transparent);
    border-radius: 4px;
}
