/*
Theme Name: GsmPlus
Description: Modern e-commerce theme for WooCommerce stores
Author: Your Name
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: gsmplus
WC requires at least: 5.0
WC tested up to: 8.0
*/

/* ==========================================================================
   CSS Variables - Color Palette & Typography
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #1F8077;          /* Main green color */
    --color-primary-dark: #196b63;     /* Darker shade for hover */
    --color-secondary: #F5A118;        /* Secondary orange color */
    --color-secondary-dark: #e3920f;   /* Darker shade for hover */
    
    /* Neutral Colors */
    --color-background: #F4F4F4;       /* Background color */
    --color-text: #595959;             /* Text color */
    --color-border: #B4B4B4;           /* Border color and icon color */
    --color-white: #FFFFFF;            /* Pure white */
    --color-black: #000000;            /* Pure black */

    /* Typography */
    --font-family-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

/* ==========================================================================
   Basic Reset and Layout
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
}

.site-main {
    min-height: 80vh;    
    padding-bottom: 5rem;
}

/* ==========================================================================
   Content Styles
   ========================================================================== */

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 2rem;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.entry-title a {
    text-decoration: none;
    color: var(--color-text-dark);
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    margin-bottom: 1rem;
}

.entry-meta .byline:before {
    content: " by ";
    color: var(--color-border);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    border: 1px solid var(--color-border-light);
}

.entry-content {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
}

.entry-content p {
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 0.375rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.read-more:hover {
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

/* Posts Navigation */
.posts-navigation {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--color-border-light);
}

.posts-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts-navigation a {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-primary);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.posts-navigation a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* No Results Section */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.page-title {
    color: var(--color-text-dark);
    font-size: 1.5rem;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    margin-bottom: .5rem;
}

.page-content {
    color: var(--color-text);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
}

.page-content p {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.25rem; font-weight: var(--font-weight-extrabold); }
h2 { font-size: 1.875rem; font-weight: var(--font-weight-bold); }
h3 { font-size: 1.5rem; font-weight: var(--font-weight-bold); }
h4 { font-size: 1.25rem; font-weight: var(--font-weight-semibold); }
h5 { font-size: 1.125rem; font-weight: var(--font-weight-semibold); }
h6 { font-size: 1rem; font-weight: var(--font-weight-medium); }

/* Paragraphs */
p {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-family-primary);
    transition: color 0.2s ease;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.woocommerce-breadcrumb {
    font-size: .8rem;
}

.woocommerce-error, .woocommerce-message {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.woocommerce-error li, .woocommerce-message {
    padding: 1rem;
    background-color: var(--color-white);
    border-radius: 0.375rem;
    line-height: 1;
}

.woocommerce-notices-wrapper {
    margin: 2rem 0;
}