/*
Theme Name: PCStation
Theme URI: https://pcstation.nl
Author: PCStation
Author URI: https://pcstation.nl
Description: Custom WordPress theme for PCStation with WooCommerce support
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pcstation
Tags: custom, woocommerce, responsive, e-commerce
*/

/* ===== CSS Variables ===== */
:root {
    --primary-color: #0066cc;
    --secondary-color: #333;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e5e5e5;
    --bg-light: #f8f8f8;
    --bg-dark: #2d3748;
    --white: #fff;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
}

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

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #0052a3;
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--white);
    opacity: 1;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header Top */
.header-top {
    background: var(--bg-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

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

.header-info {
    margin-right: 20px;
}

.header-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

.header-account {
    color: var(--text-color);
}

.header-account i {
    margin-right: 5px;
}

/* Header Main */
.header-main {
    padding: 20px 0;
}

.header-main-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 30px;
}

.site-branding {
    flex: 0 0 auto;
    justify-self: start;
}

.logo-link {
    display: inline-block;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: var(--secondary-color);
}

.site-description {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Logo Styles */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.site-logo .logo-desktop {
    display: block;
}

.site-logo .logo-mobile {
    display: none;
}

/* Center Search Bar */
.header-search-center {
    justify-self: center;
    width: 100%;
    max-width: 600px;
}

.search-form-wrapper {
    position: relative;
}

.header-search-center form {
    position: relative;
    display: flex;
    width: 100%;
}

.header-search-center input[type="search"],
.header-search-center input.search-field {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-light);
}

.header-search-center input[type="search"]:focus,
.header-search-center input.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.header-search-center input[type="search"]::placeholder,
.header-search-center input.search-field::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.header-search-center button[type="submit"],
.header-search-center .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.header-search-center button[type="submit"]:hover,
.header-search-center .search-submit:hover {
    background: var(--secondary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
}

.header-wishlist,
.header-cart,
.header-account-link,
.mobile-menu-toggle {
    position: relative;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
}

.header-cart,
.header-wishlist,
.header-account-link {
    font-size: 20px;
    color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.header-cart:hover,
.header-wishlist:hover,
.header-account-link:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Header Navigation */
.header-navigation {
    background: var(--secondary-color);
    padding: 0;
}

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

.main-navigation {
    flex: 1;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: var(--white);
    padding: 15px 20px;
    display: block;
}

.main-menu a:hover {
    background: rgba(255,255,255,0.1);
    opacity: 1;
}

.mobile-menu {
    display: none;
}

/* Categories Dropdown */
.header-categories {
    position: relative;
}

.categories-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.categories-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 250px;
    z-index: 100;
}

.header-categories:hover .categories-dropdown {
    display: block;
}

.categories-menu {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.categories-menu li a {
    color: var(--text-color);
    padding: 10px 20px;
    display: block;
}

.categories-menu li a:hover {
    background: var(--bg-light);
}

/* ===== HOMEPAGE ===== */
.homepage-content {
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Title */
.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

/* Featured Categories */
.featured-categories {
    padding: 60px 0;
    background: var(--white);
}

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

.category-card {
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

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

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 20px;
    padding: 15px;
    margin: 0;
}

.category-count {
    display: block;
    color: var(--text-light);
    padding-bottom: 15px;
}

/* Featured Products & New Arrivals */
.featured-products,
.new-arrivals {
    padding: 60px 0;
    background: var(--bg-light);
}

.new-arrivals {
    background: var(--white);
}

.products-grid {
    margin-bottom: 30px;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--white);
}

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

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    color: rgba(255,255,255,0.8);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-dark);
    color: var(--white);
}

/* Footer Widgets */
.footer-widgets {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright a {
    color: var(--white);
}

.footer-menu-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.footer-menu-list a {
    color: rgba(255,255,255,0.8);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
}

.footer-social a:hover {
    background: var(--primary-color);
    opacity: 1;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--secondary-color);
}

.back-to-top.show {
    display: flex;
}

/* ===== CONTENT ===== */
.site-content {
    padding: 40px 0;
}

.content-area {
    margin-bottom: 40px;
}

/* Posts */
article {
    margin-bottom: 40px;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.entry-title a {
    color: var(--text-color);
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.entry-content {
    margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 36px;
    }

    /* Adjust header for tablets */
    .header-main-content {
        grid-template-columns: auto 1fr auto;
        gap: 20px;
    }

    .header-search-center {
        max-width: 400px;
    }

    .header-search-center input[type="search"],
    .header-search-center input.search-field {
        padding: 10px 45px 10px 15px;
        font-size: 14px;
    }

    .header-search-center button[type="submit"],
    .header-search-center .search-submit {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-top-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-main-content {
        grid-template-columns: 1fr auto;
        gap: 15px;
    }

    .header-search-center {
        grid-column: 1 / -1;
        order: 3;
        max-width: 100%;
    }

    .site-branding {
        order: 1;
    }

    .header-actions {
        order: 2;
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-menu {
        display: none;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--white);
        z-index: 9999;
        padding: 20px;
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
    }

    .mobile-menu-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-list a {
        color: var(--text-color);
        padding: 15px 0;
        display: block;
    }

    .header-navigation {
        display: none;
    }

    /* Logo */
    .site-logo .logo-desktop {
        display: none !important;
    }

    .site-logo .logo-mobile {
        display: block !important;
    }

    .site-logo img {
        max-height: 50px;
    }

    /* Footer */
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Homepage */
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
