
/* --- Base & Layout --- */
body { display: flex; min-height: 100vh; flex-direction: column; background-color: #f4f4f4; font-family: 'Roboto', sans-serif; }
main { flex: 1 0 auto; padding-top: 10px; }
.container { max-width: 1280px; width: 90%; margin: 0 auto;}
.section { padding: 1.2rem 1rem; margin-bottom: 18px; background-color: #fff; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
h5 { font-size: 1.5rem; margin-top: 1em; margin-bottom: 0.7em; color: #444; border-bottom: 2px solid #1e88e5; padding-bottom: 6px; font-weight: 500;}
h6 { font-size: 1.2rem; margin-top: 1em; margin-bottom: 0.6em; color: #555; font-weight: 500;}

/* --- Toggle Sections Styling --- */
.toggle-header { cursor: pointer; padding: 12px 15px; background-color: #e3f2fd; border: 1px solid #bbdefb; border-bottom: none; margin-bottom: 0; font-weight: 500; display: flex; align-items: center; border-radius: 5px 5px 0 0; transition: background-color 0.3s ease; font-size: 1.1rem; color: #0d47a1; }
.toggle-header:hover { background-color: #bbdefb; }
.toggle-header.active { background-color: #bbdefb; font-weight: 500;}
.toggle-header i.material-icons { margin-right: 10px; font-size: 1.4rem; vertical-align: middle; }
.toggle-header i.colored-icon { /* Default */ color: #1e88e5; }
/* Specific Icon Colors */
.toggle-header i.icon-list_alt { color: #7cb342; } /* Specs */
.toggle-header i.icon-desktop_windows { color: #1e88e5; } /* SysReq */
.toggle-header i.icon-laptop_mac { color: #546e7a; } /* Laptops */
.toggle-header i.icon-map { color: #43a047; } /* Map Size */
.toggle-header i.icon-extension { color: #fb8c00; } /* DLC */
.toggle-header i.icon-star { color: #fbc02d; } /* Skills/Upgrades (Main Section) */
.toggle-header i.icon-upgrade { color: #fbc02d; } /* Nested Upgrade Icon */
.toggle-header i.icon-collections { color: #8e24aa; } /* Editions */
.toggle-header i.icon-gamepad { color: #e53935; } /* Gameplay */
.toggle-header i.icon-timer { color: #039be5; } /* Length */
.toggle-header i.icon-sync_alt { color: #5e35b1; } /* Crossplay */
.toggle-header i.icon-directions { color: #3949ab; } /* Walkthrough */
.toggle-header i.icon-whatshot { color: #fdd835; } /* Top Weapons */
.toggle-header i.icon-category { color: #757575; } /* Game Elements */
.toggle-header i.icon-more_horiz { color: #78909c; } /* Other Info */
.toggle-header i.icon-help_outline { color: #00acc1; } /* FAQ */

.toggle-content { padding: 18px 15px; border: 1px solid #bbdefb; border-top: none; background-color: #fff; border-radius: 0 0 5px 5px; display: none; /* Start collapsed */ }
.toggle-content.active-content { display: block; }
.toggle-content ul.browser-default { padding-left: 25px; margin-top: 5px; margin-bottom: 15px; list-style-type: disc; }
.toggle-content ul.browser-default li { margin-bottom: 8px; line-height: 1.5; font-size: 0.95rem; }
.toggle-content p { margin-bottom: 10px; line-height: 1.6; font-size: 0.95rem;}
/* Styling for Top X Numbered List Items */
.toggle-content ol.top-numbered-list { list-style: none; padding-left: 0; /* Remove default padding */ }
.toggle-content ol.top-numbered-list li {
    display: flex; align-items: baseline; /* Align number and text nicely */
    background-color: #fff8e1; /* Light yellow background */
    border: 1px solid #ffecb3;
    border-left: 5px solid #ffc107; /* Yellow accent border */
    border-radius: 8px; /* Rounded borders */
    padding: 12px 15px; /* Padding inside the 'card' */
    margin-bottom: 12px; /* Space between items */
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease-in-out;
}
 .toggle-content ol.top-numbered-list li:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
 }
.toggle-content .list-number {
    display: inline-flex; justify-content: center; align-items: center;
    min-width: 1.8em; height: 1.8em; line-height: 1.8em; /* Slightly larger */
    margin-right: 12px;
    background-color: #ffab00; /* Amber color */
    color: white;
    font-weight: bold;
    border-radius: 50%;
    font-size: 0.9em;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* --- Materialize Collections (Used for Lists like Upgrades and #additional items) --- */
.collection { border-radius: 5px; border: 1px solid #e0e0e0; margin-top: 10px; margin-bottom: 1rem;}
.collection .collection-item { border-bottom: 1px solid #e0e0e0; padding: 12px 15px; display: flex; align-items: flex-start; background-color: #fff; }
.collection .collection-item:last-child { border-bottom: none; }
.collection .collection-item i.material-icons { margin-right: 15px; color: #1e88e5; font-size: 1.8rem; margin-top: 3px; flex-shrink: 0; }
/* Adjust icon color for #additional items */
#additional .collection .collection-item i.material-icons { color: #78909c; }
.collection .collection-item .item-content { flex-grow: 1; }
.collection .collection-item .title { font-weight: 500; font-size: 1.05rem; display: block; margin-bottom: 4px; }
.collection .collection-item p { margin: 0; font-size: 0.9rem; color: #555; line-height: 1.4; }
#additional .collection .collection-item p { margin-top: 5px; } /* Add slight spacing for paragraphs in additional items */

/* --- Top 3 Cards --- */
.top-3-section { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #ccc; }
.top-3-section h6 { font-size: 1.1rem; color: #6a1b9a; margin-bottom: 15px; border-left: 3px solid #6a1b9a; padding-left: 8px; }
.top-3-card-container { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-around; margin-top: 10px; }
/* Styling applied to the .top-highlight-card class */
.top-highlight-card {
    background: linear-gradient(140deg, #ede7f6 0%, #d1c4e9 100%); /* Light purple gradient */
    border: 1px solid #b39ddb; /* Slightly darker border */
    border-radius: 8px; /* Rounded borders */
    padding: 20px; /* More padding */
    display: flex;
    align-items: center;
    flex: 1 1 260px; /* Adjust flex basis */
    min-width: 230px;
    box-shadow: 0 3px 7px rgba(106, 27, 154, 0.15); /* Purple shadow */
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border-left: 6px solid #7e57c2; /* Deeper Purple left border accent */
}
.top-highlight-card:hover { box-shadow: 0 6px 15px rgba(106, 27, 154, 0.25); transform: translateY(-3px); }
.top-highlight-card .top-3-card-icon { margin-right: 18px; flex-shrink: 0; }
.top-highlight-card .top-3-card-icon i { font-size: 3rem; /* Slightly larger icon */ color: #6a1b9a; /* Main heading purple */ text-shadow: 1px 1px 2px rgba(0,0,0,0.1); }
.top-highlight-card .top-3-card-content strong { font-size: 1.1rem; display: block; margin-bottom: 5px; color: #4a148c; /* Darker purple text */ }
.top-highlight-card .top-3-card-content p { font-size: 0.9rem; color: #5e35b1; /* Medium purple */ margin: 0; line-height: 1.45; }

/* --- Overview Card & Mobile Overview --- */
#overview.section { padding: 0; border: none; box-shadow: none; background: transparent; }
.overview-style-51.card { margin-bottom: 18px !important; border-radius: 10px; box-shadow: 0 3px 8px rgba(0,0,0,0.1); background-color: #fff; overflow: hidden; }
:root { --sidebar-bg: #424242; --sidebar-text: #eeeeee; --sidebar-heading: #ffffff; --accent-color: #00897b; }
.overview-style-51 .desktop-content-wrapper { display: flex; align-items: stretch; padding: 0; }
.overview-style-51 .desktop-image-col { flex: 0 0 33.33%; padding: 25px; background-color: #fdfdfd; text-align: center; display: flex; align-items: center; justify-content: center; border-right: 1px solid #f0f0f0; }
.overview-style-51 .desktop-image-col img { max-height: 340px; width: auto; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);}
.overview-style-51 .desktop-main-text-col { flex: 0 0 50%; padding: 25px 30px; background-color: #fff; color: #333; }
.overview-style-51 .desktop-main-text-col h4 { margin-top: 0; margin-bottom: 0.4em; }
.overview-style-51 .desktop-main-text-col .rating-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.overview-style-51 .desktop-main-text-col .rating-stars .material-icons { color: #FFC107; font-size: 1.1em; vertical-align: middle; }
.overview-style-51 .desktop-main-text-col .rating-stars .rating-count { vertical-align: middle; margin-left: 5px; font-size: 0.85rem; color: #555; }
.overview-style-51 .desktop-main-text-col .price-container .price { font-size: 1.6em; font-weight: bold; color: var(--accent-color); }
.overview-style-51 .desktop-main-text-col .description { font-size: 0.95em; line-height: 1.6; color: #333; opacity: 0.9; margin-top: 15px; max-height: 150px; overflow-y: auto;}
.overview-style-51 .buy-button { border-radius: 25px; background-color: var(--accent-color) !important; }
.overview-style-51 .desktop-main-text-col .buy-button-container { margin-top: 20px; text-align: left;}
.overview-style-51 .desktop-sidebar-col { flex: 0 0 16.67%; padding: 20px 15px; background-color: var(--sidebar-bg); color: var(--sidebar-text); font-size: 0.85em; }
.overview-style-51 .desktop-sidebar-col h6 { font-size: 1rem; color: var(--sidebar-heading); margin-top: 0; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 5px;}
.overview-style-51 .desktop-sidebar-col p { margin-bottom: 8px; line-height: 1.6; }
.overview-style-51 .desktop-sidebar-col strong { color: var(--sidebar-heading); opacity: 0.9;}
.overview-style-51 .desktop-sidebar-col .material-icons { vertical-align: middle; font-size: 1.1em; margin-right: 4px; opacity: 0.8;}
.overview-style-51 .desktop-sidebar-col .themes-section { margin-top: 15px; }
.overview-style-51 .desktop-sidebar-col .themes-section .chip { background-color: rgba(255,255,255,0.15); color: var(--sidebar-text); border-radius: 11px;}
.overview-style-51 .quick-links-section { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #e0e0e0; }
.overview-style-51 .quick-links-section h6 { font-size: 0.9rem; color: #555; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.overview-style-51 .quick-links-section a { display: inline-block; margin-right: 15px; margin-bottom: 5px; font-size: 0.9em; color: var(--accent-color); text-decoration: none; font-weight: 500; }
.overview-style-51 .quick-links-section a:hover { text-decoration: underline; }
.mobile-view-wrapper { display: none; }

/* --- Laptop Recs --- */
.recommended-laptops-group { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px dashed #ddd; }
.recommended-laptops-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;}
.recommended-laptops-group h6 { color: #3f51b5; border-left: 3px solid #3f51b5; padding-left: 8px;}
.slider-container { margin-top: 10px; }
.horizontal-slider { overflow-x: auto; white-space: nowrap; padding: 12px 5px; background-color: #f5f5f5; border-radius: 5px; border: 1px solid #eee; }
.horizontal-slider .card { display: inline-block; vertical-align: top; margin-right: 15px; width: 280px; box-shadow: 0 2px 4px rgba(0,0,0,0.08); transition: box-shadow .3s ease; border-radius: 5px; overflow: hidden; background: linear-gradient(135deg, #ffffff 0%, #f1f1f1 100%); border: 1px solid #e0e0e0;}
.horizontal-slider .card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.horizontal-slider .card:last-child { margin-right: 0; }
.horizontal-slider .card .card-image { padding: 8px; background-color: #fff;}
.horizontal-slider .card .card-image img { display: block; margin: 0 auto; height: 150px; width: auto; max-width: 100%; object-fit: contain;}
.horizontal-slider .card .card-content { padding: 15px; min-height: 140px; /* Adjusted slightly if needed */ }
.horizontal-slider .card .card-content p { font-size: 0.85rem; margin: 5px 0; line-height: 1.35; display: flex; align-items: center;}

/* Laptop Title Wrapping CSS */
.horizontal-slider .card .card-content .card-title {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.3;
    /* --- Add/Ensure these properties --- */
    white-space: normal; /* Allow text to wrap to the next line */
    overflow-wrap: break-word; /* Allow long words to break if necessary */
    word-wrap: break-word; /* Older browser support for word breaking */
    display: block; /* Ensure it behaves like a block for layout */
    max-height: 3.9em; /* Optional: Limit to approx 3 lines (line-height * 3) */
    overflow: hidden; /* Hide text that exceeds max-height */
    text-overflow: ellipsis; /* Show "..." for hidden overflow text */
    position: relative; /* Needed for absolute positioning of the icon */
    padding-right: 25px; /* Make space for the icon */
    /* --- End Add/Ensure --- */
}
.horizontal-slider .card .card-content .card-title i {
    cursor: pointer;
    color: #777;
    position: absolute; /* Position relative to the title span */
    top: 0;
    right: 0;
    line-height: 1.3; /* Match title line height */
    /* vertical-align: top; /* Align icon with the top of the text */
}
/* End Laptop Title Wrapping CSS */

.horizontal-slider .card .card-action { padding: 10px 15px; text-align: center; background-color: #fafafa; border-top: 1px solid #eee;}
.horizontal-slider .card .card-action a { font-size: 0.8rem; margin: 0 4px;}
/* .horizontal-slider .card .card-content .card-title i removed redundant styling */
.horizontal-slider .card .card-reveal { padding: 15px; font-size: 0.85rem; }
.horizontal-slider .card .card-reveal .card-title { font-size: 1rem; } /* Ensure reveal title is also styled */
.horizontal-slider .card .recommendation-note { font-size: 0.8rem; color: #4caf50; margin-top: 8px; font-style: italic;}

/* --- Specs Table & Responsive --- */
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.specs-table th { background-color: #f1f8e9; padding: 10px 8px; text-align: left; width: 30%; font-weight: 500; border-bottom: 1px solid #dcedc8; font-size: 0.9rem;}
.specs-table td { padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: top; font-size: 0.9rem; line-height: 1.4; }
.responsive-table-container { overflow-x: auto; margin-bottom: 15px; background-color: #fff; border: 1px solid #e0e0e0; border-radius: 5px; }
.responsive-table-container table { width: 100%; border-collapse: collapse; }
.responsive-table-container th, .responsive-table-container td { padding: 8px 6px; font-size: 0.9rem; text-align: left; vertical-align: middle; }
.responsive-table-container th { background-color: #f5f5f5; font-weight: 500; }
.responsive-table-container th i { vertical-align: bottom; font-size: 1.1rem; margin-right: 4px; color: #555;}
.responsive-table-container td i.spec-icon.tiny { vertical-align: middle; margin-right: 4px; color: #666; display: inline-block; }
.spec-icon.tiny { font-size: 1.1em; margin-right: 5px; position: relative; top: 3px; color: #777;}
/* Sys Req Row Colors */
.responsive-table-container tr.req-low { background-color: #fff9c4; }
.responsive-table-container tr.req-medium { background-color: #ffecb3; }
.responsive-table-container tr.req-original { background-color: #e0f2f7; }
.responsive-table-container tr.req-high { background-color: #ffe0b2; }
.responsive-table-container tr.req-very-high { background-color: #ffccbc; }
.responsive-table-container tr.req-ultra { background-color: #ffab91; }
.responsive-table-container tr.req-rt { background-color: #d1c4e9; }
.responsive-table-container tr.req-info, .responsive-table-container tr.req-note { background-color: #f5f5f5; font-style: italic; color: #555; }
@media only screen and (max-width: 992px) { /* Tablet & Mobile SysReq Table */
    #system .responsive-table-container table { border: 0; }
    #system .responsive-table-container thead { display: none; }
    #system .responsive-table-container tr { display: block; margin-bottom: 1em; border: 1px solid #ddd; border-radius: 3px; padding: 0.5em;}
    #system .responsive-table-container td { display: block; text-align: right; padding-left: 45% !important; position: relative; border-bottom: 1px dotted #eee; font-size: 0.85rem; min-height: 2.5em; }
    #system .responsive-table-container td:last-child { border-bottom: none; }
    #system .responsive-table-container td::before { content: attr(data-label); position: absolute; left: 6px; width: 40%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; font-size: 0.8rem; color: #555; display: flex; align-items: center; height: 100%;}
    #system .responsive-table-container td::before i { vertical-align: middle; margin-right: 4px; font-size: 1rem;}
    #system .responsive-table-container td i.spec-icon.tiny { display: none; }
    .responsive-table-container tr.req-low, /* ... */ .responsive-table-container tr.req-note { background-color: transparent !important; }
    #system .responsive-table-container td[data-label="Setting"] { border-top: 3px solid; padding-top: 0.8em !important; margin-top: 0.5em;}
    /* Use border colors */
    .responsive-table-container tr.req-low td[data-label="Setting"] { border-color: #fff176 !important; }
    .responsive-table-container tr.req-medium td[data-label="Setting"] { border-color: #ffd54f !important; }
    .responsive-table-container tr.req-original td[data-label="Setting"] { border-color: #81d4fa !important; }
    .responsive-table-container tr.req-high td[data-label="Setting"] { border-color: #ffb74d !important; }
    .responsive-table-container tr.req-very-high td[data-label="Setting"] { border-color: #ff8a65 !important; }
    .responsive-table-container tr.req-ultra td[data-label="Setting"] { border-color: #e57373 !important; }
    .responsive-table-container tr.req-rt td[data-label="Setting"] { border-color: #ba68c8 !important; }
    .responsive-table-container tr.req-info td[data-label="Setting"], .responsive-table-container tr.req-note td[data-label="Setting"] { border-color: #bdbdbd !important; }
 }

/* --- Game Detail Nested Sections (Inside #details) --- */
  .game-detail-section { margin-bottom: 15px; }
  .game-detail-section .toggle-header { background-color: #f5f5f5; border-color: #e0e0e0; color: #444; font-size: 1rem; border-radius: 3px 3px 0 0; }
  .game-detail-section .toggle-header:hover { background-color: #eeeeee; }
  .game-detail-section .toggle-header.active { background-color: #eeeeee; }
  .game-detail-section .toggle-header i { color: #666; margin-right: 8px; font-size: 1.2rem;}
  .game-detail-section .toggle-content { border-color: #e0e0e0; padding: 12px; display: none; border-radius: 0 0 3px 3px; background-color: #fafafa; }
  .game-detail-section .toggle-content ul.collection { margin-top: 0; box-shadow: none;}
  .game-detail-section .toggle-content ul.collection li.collection-item { background-color: #fff; }

/* --- Video --- */
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; margin-bottom: 1rem; border-radius: 5px; box-shadow: 0 2px 8px rgba(0,0,0,0.15);}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;}
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }

/* --- Mobile Specific --- */
  @media (max-width: 600px) {
      .container { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
      .section { margin-bottom: 10px; border-radius: 0; box-shadow: none; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 1rem 0.8rem; }
      #overview.section { border: none; }
      .overview-style-51.card { padding: 0 !important; border-radius: 0; box-shadow: none; border: none; background: #f5f5f5; margin-bottom: 10px !important;}
      .overview-style-51 .desktop-content-wrapper { display: none; }
      .mobile-view-wrapper { display: block !important; }
      /* ... [Rest of mobile overview styles] ... */
      .mobile-title-top { padding: 12px 15px; background-color: white; color: #333; text-align: center; border-bottom: 1px solid #eee;}
      .mobile-title-top h5 { margin: 0; font-size: 1.3rem; line-height: 1.3; font-weight: 500; }
      .mobile-50-split-container { display: flex; background-color: #ffffff; border-bottom: 1px solid #e0e0e0; }
      .mobile-image-50 { flex: 0 0 50%; padding: 10px; }
      .mobile-image-50 img { width: 100%; max-height: 120px; object-fit: cover; border-radius: 6px; display: block; }
      .mobile-details-50 { flex: 0 0 50%; padding: 10px; display: flex; flex-direction: column; justify-content: center; }
      .mobile-details-50 .mobile-rating { font-size: 0.8rem; margin-bottom: 4px; color: #555; }
      .mobile-details-50 .mobile-rating .material-icons { font-size: 1rem; vertical-align: middle; color: #FFC107; }
      .mobile-details-50 .mobile-rating .rating-count { vertical-align: middle; margin-left: 3px; }
      .mobile-details-50 .mobile-price { font-size: 1.1rem; font-weight: bold; color: var(--accent-color); margin-bottom: 4px;}
      .mobile-details-50 .mobile-genre .badge { font-size: 0.75rem; padding: 2px 6px; height: auto; line-height: normal; border-radius: 10px;}
      .mobile-stacked-below { padding: 15px; background-color: #fff; }
      .mobile-stacked-below > div { margin-bottom: 15px; }
      #mobile-description { font-size: 0.95em; line-height: 1.6em; max-height: 4.8em; overflow: hidden; transition: max-height 0.4s ease-out; margin: 0; position: relative; }
      #mobile-description.expanded { max-height: 1000px; transition: max-height 0.6s ease-in; }
      #mobile-read-more-btn { text-transform: none; color: var(--accent-color); padding: 5px 0; margin-top: 5px; display: block; text-align: left; font-weight: 500; cursor: pointer; background: none; border: none;}
      .mobile-meta-horizontal { display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center; padding: 10px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 15px 0 !important; }
      .mobile-meta-item { font-size: 0.8rem; color: #666; margin: 3px 8px; white-space: nowrap; }
      .mobile-meta-item .material-icons { font-size: 1em; vertical-align: middle; margin-right: 2px;}
      .mobile-meta-item strong { color: #444;}
      .mobile-stacked-below .quick-links-section { margin-top: 0; padding: 10px 0; border-top: none; border-bottom: 1px solid #eee; text-align: center;}
      .mobile-stacked-below .quick-links-section h6 { font-size: 0.9em; margin-bottom: 5px; color: #444;}
      .mobile-stacked-below .quick-links-section a { margin: 0 8px 5px 8px; font-size: 0.85em; }
      .mobile-stacked-below .mobile-themes strong { font-weight: 500; color: #333; display: block; margin-bottom: 5px; font-size: 1rem;}
      .mobile-stacked-below .mobile-themes div { font-size: 0.9em; color: #555; margin-bottom: 8px; line-height: 1.7;}
      .mobile-stacked-below .mobile-themes .chip { font-size: 0.8rem; margin: 3px; border-radius: 12px; background-color: #eee;}
      .mobile-stacked-below .buy-button { border-radius: 25px; }

      /* Adjust padding/margins for sections on mobile */
      .toggle-header { font-size: 1rem; padding: 10px 12px;}
      .toggle-header i.material-icons { font-size: 1.2rem; margin-right: 8px;}
      .toggle-content { padding: 12px; }
      .toggle-content ul.browser-default { padding-left: 20px; }
      .toggle-content p { font-size: 0.9rem; }
      h5 { font-size: 1.3rem; }
      h6 { font-size: 1.1rem; }
      .collection .collection-item { padding: 10px 12px; }
      .collection .collection-item i.material-icons { font-size: 1.6rem; margin-right: 12px;}
      .collection .collection-item .title { font-size: 1rem; }
      .collection .collection-item p { font-size: 0.85rem; }
       /* Top list styling adjustments for mobile */
      .toggle-content ol.top-numbered-list li { padding: 10px; margin-bottom: 8px; flex-direction: row; }
      .toggle-content .list-number { min-width: 1.6em; height: 1.6em; line-height: 1.6em; font-size: 0.8em; margin-right: 10px;}
      /* Top 3 card styling for mobile */
      .top-3-card-container { gap: 10px; }
      .top-highlight-card { padding: 12px; flex-basis: 100%; border-left-width: 4px; }
      .top-highlight-card .top-3-card-icon i { font-size: 2.5rem; } /* Adjust icon size slightly */
      .top-highlight-card .top-3-card-content strong { font-size: 1rem; }
      .top-highlight-card .top-3-card-content p { font-size: 0.85rem; }
      .video-grid { grid-template-columns: 1fr; /* Stack videos */ }

      /* Laptop card title adjustments for mobile */
      .horizontal-slider .card .card-content .card-title { font-size: 0.9rem; } /* Slightly smaller title */
 }
 


    body { background:#f5f5f5; color:#333; }
    .sys-general-notes {
      background:#e8f5e9; border-left:4px solid #66bb6a; padding:16px;
      margin-bottom:24px; border-radius:4px;
    }
    .tabs-vib {
      display:flex; gap:8px; margin-bottom:16px;
    }
    .tabs-vib button {
      flex:1; padding:10px; border:none; background:#ffffff;
      color:#333; font-weight:600; cursor:pointer; border-radius:999px;
      box-shadow:0 2px 4px rgba(0,0,0,0.1);
    }
    .tabs-vib .active { background:#66bb6a; color:#fff; }

    .card-vib {
      background:#fff; border-radius:12px; padding:18px; margin-bottom:18px;
      box-shadow:0 2px 6px rgba(0,0,0,0.1);
    }
    .card-vib h5 { margin:0 0 12px; display:flex; align-items:center; color:#66bb6a; }
    .card-vib h5 i { margin-right:8px; color:#66bb6a; }

    .fps-badge {
      display:inline-block; padding:3px 8px; border-radius:12px;
      font-size:.8rem; margin-bottom:12px; color:#fff;
    }
    .fps-low{background:#cddc39;color:#000;} 
    .fps-medium{background:#29b6f6;}
    .fps-high{background:#ff00ff !important;} 
    .fps-very-high{background:#ab47bc !important;}
    .fps-ultra{background:#ef5350;} 
    .fps-rt{background:#26c6da;}
    .fps-info{background:#bdbdbd;color:#000;} 
    .fps-original{background:#ffee58;color:#000;}
    .fps-other{background:#e0e0e0;color:#000;}

    .feature-row{display:flex;align-items:center;margin:8px 0;color:#424242;}
    .feature-row i{margin-right:8px;font-size:1.2rem;}
    .cpu-icon{color:#d32f2f;} .gpu-icon{color:#1976d2;}
    .ram-icon{color:#388e3c;} .storage-icon{color:#fbc02d;}

    .lap-badge{margin-left:8px;padding:2px 6px;border-radius:6px;font-size:.75rem;font-weight:600;color:#000;}
    .cpu-lap{background:#ef9a9a;} .gpu-lap{background:#90caf9;}
  
  
  
  
  /* ===========================
   System Requirements Styles
   =========================== */

/* Ensure the tab container has no extra padding */
#system .toggle-content {
    padding-top: 0 !important;
}

/* Tabs wrapper */
.system-req-tabs {
    margin-top: 15px;
    background-color: #f5f5f5;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.system-req-tabs .tab a {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px 8px 0 0;
    padding: 0 16px;
}
.system-req-tabs .tab a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #2e7d32;
}
.system-req-tabs .tab a.active {
    background-color: #66bb6a; /* Green lighten-1 */
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}
.system-req-tabs .indicator {
    background-color: #388e3c; /* Green darken-2 */
    height: 3px;
}

/* The panel under each tab */
.tab-content-panel {
    padding: 25px 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #ffffff;
    min-height: 200px;
}

/* Resolution title inside each tab */
h4.resolution-title {
    font-size: 2.0rem;
    margin-top: 0;
    margin-bottom: 30px;
    color: #424242;
    font-weight: 400;
    text-align: left;
    padding-bottom: 10px;
}

/* Each group of requirements for a “tier” */
.tier-section {
    margin-bottom: 25px;
}
h6.tier-header {
    font-size: 1.15rem;
    font-weight: 500;
    color: #4caf50; /* Green header text */
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #a5d6a7;
    display: flex;
    align-items: center;
}
h6.tier-header i.material-icons {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #66bb6a; /* Lighter green icon */
}
.tier-settings-subheader {
    font-weight: 400;
    font-size: 0.95rem;
    color: #757575;
    margin-left: 5px;
}
.tier-requirements-list {
    padding-left: 5px;
}

/* Individual requirement item */
.tier-req-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    transition: box-shadow 0.2s ease-in-out;
    overflow: hidden;
}
.req-item-icon {
    margin-right: 12px;
    margin-top: 3px;
    font-size: 1.2rem !important;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.req-item-content {
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.9rem;
    color: green !important;
}
.req-label {
    font-weight: 500;
    color: #555;
    margin-right: 6px;
}
.req-spec {
    color: #333;
}
.req-explanation {
    font-size: 0.9em;
    color: #757575;
    margin-left: 3px;
}

/* Dotted divider between tiers (if used) */
hr.tier-divider {
    border: none;
    border-top: 1px dashed #bdbdbd;
    margin: 30px 0 25px;
}

/* Core requirements (OS, DirectX, Storage) */
#system .collection.with-header {
    margin-top: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}
#system .collection.with-header .collection-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}
#system .collection.with-header .collection-header h6 {
    color: #37474f;
    margin: 0;
    font-weight: 500;
    font-size: 1.1rem;
}
#system .top-level-req {
    padding-top: 12px;
    padding-bottom: 12px;
}
#system .top-level-req .material-icons.tiny.left {
    margin-right: 10px;
    color: #607d8b;
    vertical-align: middle;
}
#system .top-level-req strong {
    margin-right: 5px;
    color: #37474f;
}
#system .top-level-req p.explanation-text {
    margin-top: 5px;
    margin-left: 34px;
    font-size: 0.88em;
    color: #616161;
}



  
  
                 
#system .toggle-content {
    padding-top: 0 !important;
}

.system-req-tabs {
    margin-top: 15px;
    background-color: #f5f5f5;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.system-req-tabs .tab a {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px 8px 0 0;
    padding: 0 16px; /* Adjust padding */
}
.system-req-tabs .tab a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #2e7d32;
}

.system-req-tabs .tab a.active {
    background-color: #66bb6a; /* Green lighten-1 */
    color: #ffffff;
    border-radius: 8px 8px 0 0;
}

.system-req-tabs .indicator {
    background-color: #388e3c; /* Green darken-2 */
    height: 3px;
}

.tab-content-panel {
    padding: 25px 20px; /* Add padding inside panel */
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #ffffff;
    min-height: 200px;
}

h4.resolution-title {
    font-size: 2.0rem; /* Slightly smaller */
    margin-top: 0;
    margin-bottom: 30px;
    color: #424242;
    font-weight: 400;
    text-align: left; /* Align left as per image */
    padding-bottom: 10px;
    /* border-bottom: 1px solid #eee; */ /* Optional light border */
}

.tier-section {
    margin-bottom: 25px; /* Space between requirement tiers */
}

h6.tier-header {
    font-size: 1.15rem; /* Slightly larger */
    font-weight: 500;
    color: #4caf50; /* Green header text */
    margin-bottom: 12px;
    padding-bottom: 8px; /* Space below text */
    border-bottom: 1px solid #a5d6a7; /* Light green border */
    display: flex;
    align-items: center;
}
h6.tier-header i.material-icons {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #66bb6a; /* Lighter green icon */
}
.tier-settings-subheader {
    font-weight: 400;
    font-size: 0.95rem;
    color: #757575;
    margin-left: 5px;
}

.tier-requirements-list {
    padding-left: 5px; /* Slight indent for the list */
}

.tier-req-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px; /* Rounded corners */
    padding: 12px 15px; /* Padding inside each item */
    margin-bottom: 10px; /* Space between items */
    display: flex;
    align-items: flex-start;
    transition: box-shadow 0.2s ease-in-out;
    overflow: hidden; /* Contain content */
}

/* Optional hover
.tier-req-item:hover {
    border-color: #ccc;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
*/

.req-item-icon {
    margin-right: 12px;
    margin-top: 3px; /* Align icon slightly lower */
    font-size: 1.2rem !important; /* Ensure icon size */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
    flex-shrink: 0;
    /* Color is set dynamically via PHP */
}

.req-item-content {
    flex-grow: 1;
    line-height: 1.5; /* Improve readability */
    font-size: 0.9rem; /* Base size for item text */
    color:green;
}

.req-label {
    font-weight: 500;
    color: #555;
    margin-right: 6px;
}

.req-spec {
    color: #333;
}

.req-explanation {
    font-size: 0.9em; /* Slightly smaller explanation */
    color: #757575; /* Grey explanation text */
    margin-left: 3px; /* Small space before explanation */
}

hr.tier-divider {
    border: none;
    border-top: 1px dashed #bdbdbd;
    margin: 30px 0 25px 0;
}

/* Style for the top-level requirements outside tabs */
#system .collection.with-header {
    margin-top: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}
#system .collection.with-header .collection-header {
     background-color: #f5f5f5; /* Match tab background */
     border-bottom: 1px solid #e0e0e0;
}
#system .collection.with-header .collection-header h6 {
     color: #37474f;
     margin: 0;
     font-weight: 500;
     font-size: 1.1rem;
}
#system .top-level-req {
    padding-top: 12px;
    padding-bottom: 12px;
}
#system .top-level-req .material-icons.tiny.left {
    margin-right: 10px;
    color: #ff00ff !important; /* Blue-grey icon */
    vertical-align: middle;
}
#system .top-level-req strong {
    margin-right: 5px;
    color: #37474f;
}
#system .top-level-req p.explanation-text {
    margin-top: 5px;
    margin-left: 34px; /* Align with text after icon */
    font-size: 0.88em;
    color: #616161;
}
  
  
  
  /* Base styles */
body { display: flex; min-height: 100vh; flex-direction: column; background-color: #f8f9fa; font-family: 'Roboto', sans-serif; color: #333; }
main { flex: 1 0 auto; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section { padding: 30px 0; }
.content-section { padding: 40px 0; }

/* Titles */
.section-title { font-size: 1.8rem; font-weight: 500; color: #333; margin-bottom: 25px; text-align: center; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; }
.subsection-title { font-size: 1.3rem; font-weight: 500; color: #5e35b1; margin-bottom: 20px; border-bottom: 1px solid #d1c4e9; padding-bottom: 8px; display: flex; align-items: center; }
.subsection-title i.tiny { font-size: 1.2rem; margin-right: 8px; }

/* Hero Section */
.hero-section { background: linear-gradient(to bottom, rgba(94, 53, 177, 0.85), rgba(126, 87, 194, 0.75)), url('/images/hero-background.jpg') no-repeat center center; background-size: cover; color: white; padding: 60px 0; text-align: center; }
.hero-section h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 15px; text-shadow: 1px 1px 3px rgba(0,0,0,0.2); }
.hero-section p { font-size: 1.1rem; margin-bottom: 25px; opacity: 0.9; }

/* Search Bar */
.search-bar-container { max-width: 700px; margin: 0 auto; }
.search-bar-container .input-field { margin-bottom: 0; }
.search-bar-container input[type=text].white { border-radius: 25px !important; border: 1px solid transparent !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important; padding: 0 60px 0 55px !important; height: 48px !important; line-height: 48px !important; box-sizing: border-box; background-color: rgba(255, 255, 255, 0.95) !important; color: #333; }
.search-bar-container input[type=text].white::placeholder { color: #757575; }
.search-bar-container input[type=text].white:focus { border-color: transparent !important; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4) !important; background-color: #fff !important; }
.input-field .prefix { font-size: 2rem; color: #757575; top: 0.5rem; }
.input-field .close { font-size: 1.5rem; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #9e9e9e; cursor: pointer; z-index: 2; }

/* Manual Autocomplete */
.manual-autocomplete-dropdown { position: absolute; background-color: white; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,0.15); max-height: 350px; overflow-y: auto; z-index: 1000; width: calc(100% - 20px); left: 10px; display: none; list-style: none; margin: 5px 0 0 0; padding: 0; border-radius: 8px; }
.manual-autocomplete-dropdown li { padding: 12px 18px; cursor: pointer; display: flex; align-items: center; border-bottom: 1px solid #eee; }
.manual-autocomplete-dropdown li:last-child { border-bottom: none; }
.manual-autocomplete-dropdown li:hover, .manual-autocomplete-dropdown li.selected { background-color: #f5f5f5; }
.manual-autocomplete-dropdown li img { width: 45px; height: 60px; /* Taller for game covers */ object-fit: cover; margin-right: 12px; border-radius: 4px; flex-shrink: 0; background-color: #eee; }
.manual-autocomplete-dropdown li .suggestion-text { display: flex; flex-direction: column; overflow: hidden; }
.manual-autocomplete-dropdown li .suggestion-text .title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.95rem; color: #333; }
.manual-autocomplete-dropdown li .suggestion-text .genre { font-size: 0.8em; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* Dynamic Content Area */
#dynamic-recommendations-placeholder { min-height: 250px; display: flex; align-items: center; justify-content: center; text-align: center; color: #757575; border: 2px dashed #e0e0e0; border-radius: 8px; margin-top: 30px; padding: 40px; flex-direction: column; background-color: #fafafa; }
#dynamic-recommendations-placeholder i { font-size: 3.5rem; margin-bottom: 15px; display: block; color: #bdbdbd; }
.loader-container { text-align: center; padding: 50px 0; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.recommendations-error-box { padding: 20px; margin-top: 20px; border: 1px solid #e57373; border-radius: 4px; background-color: #ffebee; color: #c62828; display: flex; align-items: center; }
.recommendations-error-box i { margin-right: 10px; }
.recommendations-info-box { padding: 40px 15px; margin-top: 20px; border: 1px solid #bdbdbd; background: #f5f5f5; border-radius: 4px; text-align: center; }
.recommendations-info-box i { font-size: 3.5rem; margin-bottom: 15px; display: block; color: #9e9e9e; }
.global-error-message { background-color: #ffcdd2; color: #c62828; padding: 15px 20px; border-left: 5px solid #b71c1c; margin: 20px auto; max-width: 95%; width: 800px; border-radius: 4px; display: flex; align-items: center; }
.global-error-message i { margin-right: 10px; font-size: 1.5rem; }

/* Filter Controls */
.filter-controls { background-color: #f9f9f9; padding: 15px 25px 5px 25px; border: 1px solid #eee; border-bottom-width: 2px; margin-bottom: 25px; border-radius: 6px; }
.filter-controls .input-field { margin-top: 5px; margin-bottom: 15px; }
.filter-controls label { font-size: 0.9rem; color: #555; }
.filter-controls .btn-flat { padding: 0 10px; height: 36px; line-height: 36px; margin-top: 20px; color: #666; }
.filter-controls .btn-flat:hover { background-color: rgba(0,0,0,0.05); }
.no-filter-results { margin: 15px 0; font-style: italic; text-align: center; padding: 12px; background-color: #fff3e0; border: 1px solid #ffe0b2; border-radius: 4px; color: #e65100; }

/* Horizontal Slider Base */
.slider-container { overflow: hidden; position: relative; margin: 20px -15px 0; } /* Negative margin to expand touch area for scroll */
.horizontal-slider { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 18px; padding: 10px 15px 30px 15px; margin-bottom: -20px; /* To hide bottom part of scrollbar visually */ -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #bdbdbd #f1f1f1; }
.horizontal-slider::-webkit-scrollbar { height: 8px; background-color: #f1f1f1; } .horizontal-slider::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } .horizontal-slider::-webkit-scrollbar-thumb { background-color: #bdbdbd; border-radius: 4px; border: 2px solid #f1f1f1; } .horizontal-slider::-webkit-scrollbar-thumb:hover { background-color: #9e9e9e; }
.horizontal-slider::after { content: ''; flex: 0 0 1px; } /* End spacer for better scroll snap */

/* Preset Tab Slider */
.preset-tabs-slider-container { overflow: hidden; margin: 20px 0 15px 0; border-bottom: 2px solid #e0e0e0; }
.preset-tabs-list { gap: 0; padding: 0 10px; margin-bottom: -2px; scrollbar-width: none; /* Firefox */ scroll-snap-type: none; }
.preset-tabs-list::-webkit-scrollbar { display: none; /* Chrome, Safari, Edge */ }
.preset-tab-link { display: block; flex: 0 0 auto; padding: 12px 22px; text-align: center; color: #6a1b9a; text-transform: uppercase; font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; transition: all .25s ease; cursor: pointer; user-select: none; }
.preset-tab-link:hover { background-color: rgba(94, 53, 177, 0.08); color: #4a148c; }
.preset-tab-link.active { color: #4a148c; border-bottom-color: #6a1b9a; font-weight: 700; }
.preset-tab-content { display: none; padding-top: 15px; animation: fadeIn 0.5s ease-in-out; }
.preset-tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Laptop Card (Mini) Styling */
.laptop-card-mini { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease; min-height: 470px; height: auto; overflow: hidden; }
.laptop-card-mini:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-3px); }
.laptop-card-mini .laptop-image { position: relative; height: 180px; background-color: #fafafa; padding: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #eee; }
.laptop-card-mini .laptop-image img { max-height: 95%; max-width: 90%; object-fit: contain; transition: transform .3s ease; }
.laptop-card-mini:hover .laptop-image img { transform: scale(1.03); }
.laptop-card-mini .chip.tier-chip-overlay { position: absolute; top: 8px; right: 8px; background-color: rgba(74,20,140,.9); color: #fff; font-size: .75rem; height: 24px; line-height: 24px; padding: 0 10px; border-radius: 12px; font-weight: 500; z-index: 2; }
.laptop-card-mini .laptop-content { padding: 18px; font-size: 0.9rem; flex-grow: 1; display: flex; flex-direction: column; }
.laptop-card-mini .laptop-model { font-weight: 500; font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; min-height: 2.8em; /* Approx 2 lines */ }
.laptop-card-mini .laptop-model a { color: inherit; text-decoration: none; }
.laptop-card-mini .laptop-model a:hover { color: #6a1b9a; text-decoration: underline; }
.laptop-card-mini .specs-list { margin-top: 12px; flex-grow: 1; }
.laptop-spec { font-size: 0.88rem; margin-bottom: 8px; color: #444; display: flex !important; align-items: flex-start !important; line-height: 1.45; width: 100%; }
.laptop-spec i { font-size: 1.05rem; margin-right: 7px; color: #757575; flex-shrink: 0; margin-top: 2px; }
.laptop-spec i.red-text {color:#e53935!important;} .laptop-spec i.blue-text {color:#1e88e5!important;} .laptop-spec i.green-text {color:#43a047!important;} .laptop-spec i.purple-text {color:#8e24aa!important;}
.laptop-spec span.spec-text { flex-grow: 1; flex-shrink: 1; min-width: 0; display: block; white-space: normal !important; overflow-wrap: break-word; word-break: break-word; line-height: 1.45; }
.laptop-card-mini .tgp-chip-mini { font-size: .75rem !important; padding: 2px 8px; margin-left: 8px; background: #eee; color: #555; border-radius: 4px; font-weight: 500; white-space: nowrap; vertical-align: middle; display: inline-block; }
.laptop-card-mini .recommendation-note-mini { font-size: .85rem; margin-top: 15px; color: #555; font-style: italic; display: flex; align-items: flex-start; line-height: 1.45; border-top: 1px dotted #ddd; padding-top: 12px; white-space: normal; word-break: break-word; }
.laptop-card-mini .recommendation-note-mini i { font-size: 1rem; margin-right: 8px; margin-top: 2px; flex-shrink: 0; color: #757575; }
.laptop-card-mini .card-action { padding: 15px 18px; text-align: center; background: #f9f9f9; border-top: 1px solid #eee; margin-top: auto; }
.laptop-card-mini .card-action .btn-small { height: 36px; line-height: 36px; font-size: .9rem; background-color: #7b1fa2; width: 100%; text-transform: none; }
.laptop-card-mini .card-action .btn-small:hover { background-color: #6a1b9a; }
.horizontal-slider .laptop-card-mini { flex: 0 0 auto; width: 300px; scroll-snap-align: start; margin-bottom: 8px; }

/* Static Game Card */
.explore-games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 25px; }
.static-game-card { background: #fff; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.08); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; display: flex; flex-direction: column; }
.static-game-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.12); transform: translateY(-4px); }
.static-game-card .card-image { height: 170px; /* Taller for game covers */ overflow: hidden; background-color: #eee; position: relative; }
.static-game-card .card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.static-game-card:hover .card-image img { transform: scale(1.05); }
.static-game-card .card-content { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; }
.static-game-card .card-title { font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.static-game-card .card-title a { color: #333; text-decoration: none; }
.static-game-card .card-title a:hover { color: #6a1b9a; }
.static-game-card .game-genre { font-size: 0.85rem; color: #666; margin-bottom: auto; padding-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.static-game-card .game-release-date { font-size: 0.85rem; color: #777; margin-top: 10px; display: flex; align-items: center; }
.static-game-card .game-release-date i { margin-right: 6px; font-size: 1rem; }
.static-game-card .card-action { padding: 10px 15px; border-top: 1px solid #eee; margin-top: auto; background-color: #fdfdfd; display:flex; flex-direction: column; gap: 8px; /* Added for multiple buttons */ }
.static-game-card .card-action .btn-small, .static-game-card .card-action .btn, /* Generalize for btn class too */
.static-game-card .card-action .compare-game-btn { width: 100%; margin-top: 0; font-size: 0.85rem; padding: 0 10px; text-transform: none;}
.static-game-card .card-action .compare-game-btn i.left { margin-right: 5px; font-size: 1rem; vertical-align: middle; }

/* System Requirements Card */
.sys-req-card { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 18px; min-height: 260px; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.sys-req-card .req-title { font-size: 1.05rem; font-weight: 500; color: #4a148c; margin-bottom: 12px; border-bottom: 1px solid #eee; padding-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-req-card .req-setting { font-size: 0.9rem; color: #555; margin-bottom: 18px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sys-req-card .req-spec { display: flex; align-items: flex-start; margin-bottom: 10px; font-size: 0.9rem; line-height: 1.5; }
.sys-req-card .req-spec i { font-size: 1.1rem; margin-right: 10px; color: #757575; margin-top: 2px; flex-shrink: 0; }
.sys-req-card .req-spec span { word-break: break-word; white-space: normal; color: #333; }
.sys-req-card .req-spec strong { color: #555; font-weight: 500; }
.horizontal-slider .sys-req-card { flex: 0 0 auto; width: 270px; scroll-snap-align: start; margin-bottom: 8px; }

/* Hidden Requirements Section (Dynamic) */
.toggle-reqs-btn { margin-bottom: 15px !important; width: 100%; text-align: left; justify-content: flex-start; font-weight: 500; background-color: #f5f5f5; color: #555;}
.toggle-reqs-btn:hover { background-color: #eeeeee; }
.requirements-area { background-color: #fdfdfd; border-radius: 0 0 6px 6px; border: 1px solid #eee; border-top: none; } /* Style for the content area of requirements if needed */

/* Genre Chips */
.genre-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; }
.genre-chips .chip { background-color: #ede7f6; color: #5e35b1; transition: background-color 0.3s ease, color 0.3s ease; font-weight: 500; cursor: pointer; }
.genre-chips .chip:hover, .genre-chips .chip.active { background-color: #5e35b1; color: #fff; }

/* Footer */
.page-footer { padding-top: 30px; background-color: #4a148c; }
.page-footer h5 { color: #e1bee7; font-weight: 500; font-size: 1.3rem; }
.page-footer ul li a { color: #d1c4e9; font-size: 0.95rem; transition: color 0.3s ease; }
.page-footer ul li a:hover { color: #fff; text-decoration: underline; }
.footer-copyright { background-color: #311b92; padding: 15px 0; }
.footer-copyright .container { display: flex; justify-content: space-between; align-items: center; }

/* Scroll Top Button */
.fixed-action-btn { bottom: 25px; right: 25px; z-index: 997; /* Below Sidenav overlay which is 998 */ }
#scrollTopBtn { background-color: #6a1b9a; transition: transform 0.3s ease, opacity 0.3s ease; }
#scrollTopBtn:hover { background-color: #4a148c; transform: scale(1.1); }

/* Compare Modal Styles */
#compareModal { max-width: 650px; border-radius: 6px; overflow: visible; }
.compare-modal-header { background-color: #6a1b9a; /* Purple to match theme */ color: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-radius: 6px 6px 0 0;}
.compare-modal-header h4 { margin: 0; font-size: 1.3rem; font-weight: 500; }
.compare-modal-header .close-icon { font-size: 1.8rem; cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity 0.2s ease; }
.compare-modal-header .close-icon:hover { opacity: 1;}
#compareModal .modal-content { padding: 25px 20px; overflow: visible; }
.compare-content-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; /* Align items to top */ }
.compare-current-product { flex: 0 0 180px; text-align: center; }
.compare-current-product img { max-width: 120px; height: 180px; object-fit: cover; display: block; margin: 0 auto 10px auto; border: 1px solid #eee; border-radius: 4px; background-color: #f9f9f9; }
.compare-current-product p { font-size: 0.9rem; font-weight: 500; color: #333; margin: 0; line-height: 1.3; }
.compare-add-product { flex: 1; min-width: 250px; position: relative; /* For dropdown */ }
.compare-add-product label.search-label { display: block; font-size: 0.95rem; color: #555; margin-bottom: 8px; font-weight: 500; }
.compare-add-product .search-input-wrapper input[type=text] { display: block; width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; box-sizing: border-box; transition: border-color 0.2s ease; }
.compare-add-product .search-input-wrapper input[type=text]:focus { border-color: #6a1b9a; outline: none; box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.2); }
.compare-add-product .search-input-wrapper input[type=text]::placeholder { color: #aaa; }
#compareSearchResults.manual-autocomplete-dropdown { width: 100%; left: 0; top: calc(100% + 2px); /* Position below input with slight gap */ z-index: 1050; max-height: 200px; }
#selectedProductDisplay { display: none; align-items: center; background-color: #f5f5f5; border-radius: 4px; padding: 10px 12px; margin-top: 15px; border: 1px solid #e0e0e0; position: relative; }
#selectedProductDisplay img { width: 45px; height: 60px; object-fit: cover; margin-right: 12px; border-radius: 3px; flex-shrink: 0; background-color: #eee; }
#selectedProductDisplay .title { flex-grow: 1; font-size: 0.95rem; font-weight: bold; padding-right: 30px; /* Space for remove button */ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#selectedProductDisplay .remove-btn { color: #f44336; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 5px; position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }
#selectedProductDisplay .remove-btn:hover { opacity: 0.7; }
.compare-modal-footer { background-color: #f9f9f9; padding: 12px 20px; border-top: 1px solid #e0e0e0; display: flex; justify-content: flex-end; /* Align buttons to right */ align-items: center; gap: 10px; border-radius: 0 0 6px 6px;}
.compare-modal-footer .btn-clear { background-color: #f5f5f5; border: 1px solid #ccc; color: #555; padding: 8px 18px; border-radius: 4px; font-size: 0.9rem; cursor: pointer; transition: background-color 0.2s ease; }
.compare-modal-footer .btn-clear:hover { background-color: #e0e0e0; }
.compare-modal-footer .btn-compare { background-color: #4caf50; color: white; border: none; padding: 9px 20px; border-radius: 4px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background-color 0.2s ease; }
.compare-modal-footer .btn-compare:hover { background-color: #43a047; }
.compare-modal-footer .btn-compare.disabled { background-color: #bdbdbd; cursor: not-allowed; opacity: 0.7; }
/* End Compare Modal Styles */

/* Genre Search Results Section */
#genre-results-section { padding: 20px 0; } /* Spacing if results shown */
#genre-results-section .section-title { margin-bottom: 20px; }
#genre-results-loader p { color: #555; margin-top: 15px; }
#genre-results-grid { margin-top: 20px; } /* Spacing if error also visible */

/* Responsive Adjustments */
@media (max-width: 992px) { /* Medium screens */
    .explore-games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
    .horizontal-slider .laptop-card-mini { width: 280px; }
}
@media (max-width: 600px) { /* Small screens */
    .hero-section { padding: 40px 0; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1rem; }
    .search-bar-container input[type=text].white { padding: 0 50px 0 45px !important; height: 44px !important; line-height: 44px !important;}
    .input-field .prefix { font-size: 1.8rem; top: 0.4rem;}
    .input-field .close { right: 10px; font-size: 1.3rem;}
    .manual-autocomplete-dropdown { width: calc(100% - 10px); left: 5px; }
    .horizontal-slider .laptop-card-mini { width: 270px; }
    .laptop-card-mini .laptop-model { font-size: 1rem; }
    .filter-controls { padding: 10px 15px 0px 15px; }
    .filter-controls .btn-flat { margin-top: 10px; width: 100%; }
    .explore-games-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 15px; }
    .static-game-card .card-title { font-size: 0.95rem; }
    .static-game-card .card-image { height: 160px; /* Adjusted */ }
    .static-game-card .card-action { padding: 8px 10px; }
    .static-game-card .card-action .btn-small, .static-game-card .card-action .btn,
    .static-game-card .card-action .compare-game-btn { height: 32px; line-height: 32px; font-size: 0.8rem;}
    .static-game-card .card-action .compare-game-btn i.left { font-size: 0.9rem; }
    .horizontal-slider .sys-req-card { width: 240px; }
    .preset-tab-link { padding: 10px 18px; font-size: 0.85rem; }
    .page-footer .col.s12, .page-footer .col.s6 { margin-bottom: 20px; }
    .footer-copyright .container { flex-direction: column; text-align: center; }
    .footer-copyright .right { margin-top: 5px; }

    /* Compare Modal Responsive */
    #compareModal { max-width: 95%; width: auto !important; margin: 20px auto !important; } /* Add top/bottom margin */
    .compare-modal-header { padding: 10px 15px; }
    .compare-modal-header h4 { font-size: 1.1rem; }
    #compareModal .modal-content { padding: 15px; }
    .compare-content-row { flex-direction: column; gap: 15px; }
    .compare-current-product { flex-basis: auto; width: 100%; display: flex; align-items: center; text-align: left; background-color: #f9f9f9; padding: 10px; border-radius: 4px; border: 1px solid #eee; }
    .compare-current-product img { max-width: 60px; height: 90px; margin: 0 15px 0 0; }
    .compare-current-product p { font-size: 0.95rem; }
    .compare-add-product { width: 100%; }
    .compare-modal-footer { padding: 10px 15px; flex-direction: row; justify-content: flex-end; gap: 10px; } /* Keep row on small but allow wrap */
}
@media (min-width: 601px) {
    .preset-tabs-list { gap: 5px; }
}
@media only screen and (max-width: 420px) { /* Extra small screens for compare modal footer */
    .compare-modal-footer { flex-direction: column; align-items: stretch; }
    .compare-modal-footer .btn-clear, .compare-modal-footer .btn-compare { width: 100%; }
    .explore-games-grid { grid-template-columns: 1fr; } /* Single column for very narrow screens */
      .static-game-card .card-title { font-size: 0.9rem; }
      .hero-section h1 { font-size: 1.8rem; }
      .section-title { font-size: 1.6rem;}
}
  
  
  
  
 