/*
Theme Name: petsygram
Description: A modern, high-vibrancy lifestyle and entertainment portal for pet owners. Built for fast SPA loads, Reddit meme streaming, and zero-overhead affiliate flipping.
Author: Admin
Version: 1.0.0
Text Domain: petsts
*/

/* ==========================================================================
   1. CSS VARIABLES (OPTION 1: "ENERGETIC PLAYROOM")
   ========================================================================== */
:root {
    /* Main Layout Surfaces */
    --bg-main: #FAFAFD;          /* Soft, clean slate-white for workspace */
    --bg-surface: #FFFFFF;       /* Pure white for cards, sidebars, and header */
    
    /* Branding Accent Pops */
    --accent-primary: #FF9F1C;   /* Vibrant Mango Orange */
    --accent-hover: #E68910;     /* Deeper warm orange for button hovers */
    --accent-support: #4A90E2;   /* Playful Sky Blue for maps & secondary actions */
    
    /* Typography */
    --text-main: #2B2D42;        /* Rich deep charcoal navy (softer than black) */
    --text-muted: #718096;       /* Smooth medium slate gray */
    --border-color: #E2E8F0;     /* Crisp, subtle dividing lines */

    /* Pet Tool Status Badges */
    --status-safe-bg: #E8F5E9;
    --status-safe-txt: #2E7D32;
    --status-danger-bg: #FFEBEE;
    --status-danger-txt: #C62828;

    /* Typography & Spacing */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-md: 12px;           /* Slightly rounder/friendlier than gaming */
    --radius-lg: 18px;
    --transition-speed: 0.25s;
}

/* ==========================================================================
   2. BASE STYLES & RESETS
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

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

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.2px;
}

.section-title {
    border-left: 4px solid var(--accent-primary);
    padding-left: 15px;
    margin: 40px 0 20px;
    font-size: 1.8rem;
    color: var(--text-main);
}

/* ==========================================================================
   4. COMPONENT GRIDS (Legacy gaming bindings mapped to Pet feeds)
   ========================================================================== */
.games-grid,
.twitch-streams-grid,
.youtube-streams-grid,
.amazon-deals-grid,
.reddit-feed-grid,
.pet-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* ==========================================================================
   5. CARD DESIGNS (Hover Lift & Soft Daylight Shading)
   ========================================================================== */
.twitch-stream-card,
.youtube-stream-card,
.deal-card,
.reddit-post-card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

/* Premium Daylight Lift Effect */
.twitch-stream-card:hover,
.youtube-stream-card:hover,
.deal-card:hover,
.reddit-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(43, 45, 66, 0.08); /* Diffused daylight shadow */
    border-color: var(--accent-primary) !important;
}

/* Card Typography Adjustments */
.deal-card h4, .reddit-post-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px !important;
    color: var(--text-main);
}

.deal-card p, .reddit-post-card p {
    color: var(--text-muted) !important;
    font-size: 0.95rem !important;
}

/* ==========================================================================
   6. MONETIZATION & DEAL ENGINE (Amazon / Chewy)
   ========================================================================== */
.deal-card {
    text-align: left !important;
    position: relative;
}

.deal-card .price {
    color: var(--accent-primary) !important;
    font-size: 1.4rem !important;
    font-weight: 800;
    margin-bottom: 15px !important;
}

.buy-btn, .action-btn {
    display: block;
    background-color: var(--accent-primary) !important;
    color: #FFFFFF !important;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-top: auto;
    transition: background-color var(--transition-speed) ease;
    cursor: pointer;
    border: none;
}

.buy-btn:hover, .action-btn:hover {
    background-color: var(--accent-hover) !important;
}

/* ==========================================================================
   7. PET SPECIFIC UI HELPERS (Tags, Reddit Flairs & Triage Pills)
   ========================================================================== */
.community-tag, .flair-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    margin-right: 6px;
}

.community-tag {
    background-color: var(--bg-main);
    color: var(--accent-support);
    border: 1px solid var(--border-color);
}

.flair-badge {
    background-color: #FFF3E0;
    color: var(--accent-primary);
}

.badge-safe {
    background-color: var(--status-safe-bg) !important;
    color: var(--status-safe-txt) !important;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 6px;
}

.badge-danger {
    background-color: var(--status-danger-bg) !important;
    color: var(--status-danger-txt) !important;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 6px;
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .games-grid,
    .reddit-feed-grid,
    .amazon-deals-grid,
    .pet-tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
}