/*
Theme Name: GadgetaOracle
Author: Taps
Author URI: https://computerrepairvancouverwa.com
Description: A custom clean theme for Gadget Oracle.
Version: 1.0
*/

:root {
    /* Brand Colors */
    --midnight-blue: #192a56; /* Primary Dark Color */
    --dodger-blue: #3498db;   /* Accent/Action Color */
    --light-bg: #f7f9fa;      /* Light Background for sections */
    --text-dark: #333;        /* General Text Color */
    --white: #ffffff;

    /* Spacing & Borders */
    --padding-md: 20px;
    --padding-lg: 40px;
    --border-radius-sm: 6px; /* Softer corners */
    --box-shadow-light: 0 3px 15px rgba(0, 0, 0, 0.07); /* Shadow depth */
}

html{
    scroll-behavior: smooth;
}

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

body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.65; /* Enhanced readability */
    background-color: var(--white);
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--midnight-blue);
    transition: color 0.3s ease;
    display: inline-block;
}
a:hover {
    color: var(--dodger-blue);
}

/* Theme Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px; 
}

.content {
    min-height: 250px;
    margin: 0 auto;
    padding: 25px 0; 
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 2.3em; /* Slightly larger title */
    color: var(--midnight-blue);
    margin-bottom: 30px;
    padding-top: 10px;
}

h1, h2, h3, h4{
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1.fonts {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    color: #1a1a1a;
}

.entry-h2{
   font-size: 2rem;
   margin-bottom: 15px;
   color: #192a56;
}

p{
   font-size: 1.05rem;
   line-height: 1.4; 
}

/* Navigation & Header */
header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); /* Subtle lift shadow */
}

/* Main Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically to the middle */
    flex-wrap: wrap; 
    gap: 15px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Logo Styling */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1; 
    min-width: 150px; 
}
.logo h1 {
    font-size: 2em; 
    color: var(--midnight-blue);
    margin-bottom: -5px;
    letter-spacing: -0.5px;
}

.logo span {
     color: var(--dodger-blue);
}

.logo-tagline{
    font-size: 1em;
    color: #777;
    margin-top: 10px;
    padding-left: 2px;
    align-self: flex-start;
}

/* Center Group (Search + Container) */
.search-and-utility-group {
    display: flex;
    align-items: stretch; 
    gap: 10px; 
    flex-grow: 2; 
    max-width: 800px;
    line-height: 1.25;
}

/* Search Bar Area */
.search-form {
    display: flex;
    flex-grow: 3; /* Search bar center sapce */
    min-width: 250px;
}

.search-form input[type="text"] {
    padding: 12px 18px; 
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    flex-grow: 1;
}

.search-form button {
    background-color: var(--dodger-blue);
    color: white;
    border: none;
    padding: 12px 25px; /* Match height/padding to input */
    cursor: pointer;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: background-color 0.3s ease, box-shadow 0.2s;
    font-weight: 600;
}

.search-result {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  border-left: 4px solid #F5F5F5;
}

.search-result:hover {
    background-color: #f1f2f6;
    transform: translateX(3px);
}


.results-h1 {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.results-title {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.results-preview {
  font-size: 1.4rem;
  line-height: 1.4;
  padding: 12px 0;
}

.no-results{
    margin-bottom: 1rem;
}

/* Trending Button */
 .trending-button {
     background-color: var(--midnight-blue); 
     color: white !important; 
     padding: 12px 25px; /* Match search button size */
     border-radius: var(--border-radius-sm);
     font-weight: 600;
     text-transform: uppercase;
     transition: background-color 0.3s ease, transform 0.2s;
 }

.trending-button:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Primary Navigation */
.primary-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; 
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.primary-nav a {
    font-size: 0.9em;
    text-transform: uppercase;
    color: var(--midnight-blue);
    padding: 5px 0;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(rgba(25, 42, 86, 0.6), rgba(25, 42, 86, 0.6)), url('imgs/go-banner-4.png');
    /* Assuming a background image is available */
    background-size: cover;
    background-position: center;
    color: white;
    padding: var(--padding-lg) 0;
    text-align: center;
}

.cta-button {
    background-color: var(--dodger-blue);
    color: #F0F0EE;
    padding: 12px 30px;
    margin-top: 15px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover{
    color: #ee8;
}

@media only screen and (max-width: 767px) {
     .hero-banner {
        /* display: none;  Removed completely on mobile */
    }
}

/* CarD Grid */
.product-grid {
    display: grid;
    gap: 30px;
    padding-bottom: var(--padding-lg);
}

.product-card {
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow-light); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    overflow: hidden;
}
.product-card:hover {
     transform: translateY(-5px); 
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Hover effect */
}

/* Placeholder Styling remains clean */
.product-image-placeholder {
    height: 220px; 
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #999;
}

.product-info {
    padding: 20px 15px;
}

.product-info h3 {
    font-size: 1.3em; 
    margin-bottom: 8px;
    color: var(--midnight-blue);
}
.price {
    font-size: 1.5em; 
    color: #c0392b; 
    font-weight: bold;
    margin-top: 15px;
    display: block;
}

/* Category Cards */
.category-card {
    height: 220px; 
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    border: 2px solid #eee;
}

 .category-card:hover {
     transform: translateY(-3px);
     box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Flex Wrapper */
.go-flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    justify-content: center;
    padding-top: 25px; 
    padding-bottom: 15px;
}

/* Tile Styles */
.go-tile {
    position: relative;
    height: 220px;
    flex: 1 1 calc(25% - 20px); /* Auto adjust tile rows */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Tile Overlay */
.go-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); 
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.8));
}

.laptop-tile{
    background-image: url('imgs/laptops.png');
}

/* Text Styling */
.go-tile h2 {
    position: relative;
    color: #ffffff;
    font-size: 1.5rem;
    z-index: 1; 
    border-radius: 8px;
    padding: 5px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.8);
    /*background: rgba(0, 0, 0, 0.8); */
}

/* Hover Effects */
.go-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Pagination styles */
.pagination {
    margin: 15px 0;
    text-align: center;
}

.pagination .page-numbers {
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    display: inline-block;
}

/* Pagination current page */
.pagination .page-numbers.current {
    background-color: #0073aa; /* Change to your theme color */
    border-color: #0073aa;
    color: #fff;
}

/* Pagination hover effect on links */
.pagination .page-numbers:hover {
    background-color: #eee;
}

/* Breadcrumbs Styles */
.breadcrumb-container {
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: inline-block;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}
.breadcrumb-item {
    display: inline-block;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #192a56; 
    background-color: #eee;
    border-radius: 15px;
    padding: 3px 9px;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #fff;
    background-color: #3498db;
}

.breadcrumb-item .separator {
    margin: 0 5px;
    color: #ccc;
}

.breadcrumb-item .current-page {
    color: #999; 
    border-radius: 15px;
    padding: 3px 9px;
    background-color: #F5F5F5;
}


/* Footer Area */
footer {
    background-color: var(--midnight-blue);
    padding: 40px 0 20px; 
}

.footer-content {
 display: flex;
 flex-direction: column;
 gap: 30px;
}

.copyright,
.copyright a{
 color:#ffffff;
}

.footer-column h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.2em; 
    padding-bottom: 8px;
    border-bottom: 3px solid var(--dodger-blue); 
}

.footer-column ul {
    list-style: none;
    font-size: 1em; 
    padding-top: 5px;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #b3cde0; 
    font-size: 1em;
    display: block;
    padding: 5px 0;
}

/* Mobile Stles */
@media screen and (max-width: 767px) {
    
    header { padding: 15px 0 5px; } 

    /* Search Bar flow */
    .search-and-utility-group {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
        gap: 15px; 
        margin-top: 10px; 
    }

     /* Header Content flow / Full width on mobile */
    .header-content {
         flex-direction: column;
         align-items: stretch; 
    }

    .primary-nav {
        justify-content: space-evenly; 
    }
}

@media screen and (min-width: 768px) {
    /* Desktop/Tablet Layouts */

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

    /* Footer Mobile Transition */
    .footer-content {
         flex-direction: row;
         justify-content: space-between;
         text-align: left;
    }
}

@media screen and (min-width: 1200px) {
    /* Large Desktop Layouts */
    .container { padding: 0 60px; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Categories Tiles Mobile Responsiveness */
@media (max-width: 992px) {
    .go-tile {
        flex: 1 1 calc(50% - 20px); /* 2 items per row on tablets */
    }
}

@media (max-width: 600px) {
    .go-tile {
        flex: 1 1 100%; /* 1 item per row on mobile */
    }
}
