/*
Theme Name: Garket Theme
Theme URI: https://garket.com
Author: Garket
Author URI: https://garket.com
Description: Custom theme for Garket - Geek & Gaming culture portal
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garket-theme
Tags: blog, magazine, custom-colors, custom-logo, custom-menu, featured-images, responsive-layout
*/

/* =========================================
   GOOGLE FONTS
   Rajdhani – headings (geek/gaming feel)
   Inter – body text (clean, readable)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Rajdhani:wght@500;600;700&display=swap');

/* =========================================
   CSS VARIABLES
========================================= */
:root {
    --color-primary:     #FF6600;
    --color-primary-hover: #e05a00;
    --color-bg:          #FFFFFF;
    --color-text:        #111111;
    --color-text-muted:  #666666;
    --color-border:      #E5E5E5;
    --color-surface:     #F7F7F7;
    --color-dark:        #1A1A1A;

    --font-heading:      'Rajdhani', sans-serif;
    --font-body:         'Inter', sans-serif;

    --radius:            6px;
    --max-width:         1200px;
    --gap:               24px;
}

/* =========================================
   RESET & BASE
========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

/* =========================================
   LAYOUT UTILITIES
========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff !important;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    color: #fff !important;
}

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

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* =========================================
   CATEGORY BADGE
========================================= */
.category-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 3px;
}

.category-badge:hover {
    background: var(--color-primary-hover);
    color: #fff !important;
}

/* =========================================
   POST CARD (shared across shortcodes)
========================================= */
.garket-post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.garket-post-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.garket-post-card .card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.garket-post-card .card-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.garket-post-card .card-body {
    padding: 16px;
}

.garket-post-card .card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.garket-post-card .card-date {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.garket-post-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.garket-post-card .card-title > a {
    color: var(--color-text);
    transition: color 0.2s;
}

.garket-post-card .card-title > a:hover {
    color: var(--color-primary);
}

.garket-post-card .card-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.garket-post-card .card-link {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.garket-post-card .card-link:hover {
    color: var(--color-primary-hover);
}

/* =========================================
   3-COLUMN GRID (posts archive)
========================================= */
.garket-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

@media (max-width: 900px) {
    .garket-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .garket-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SITE WRAPPER
========================================= */
#site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#site-content {
    flex: 1;
}

/* =========================================
   RESPONSIVE UTILITIES
========================================= */
@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }
}