/*
Theme Name: Blocksy Child
Theme URI: https://creativemines.com/blocksy/
Description: A child theme of Blocksy theme for TFM Shop Redesign.
Author: CreativeMines & TFM Design Agent
Author URI: https://creativemines.com/
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Custom styles for TFM Shop Redesign */

/* Typography - Inter from Google Fonts for clean technical reading */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Custom styles for TFM Shop Redesign (Option 1: Developer Console / Dark Tech) */

/* Typography - Inter from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
    --tfm-primary: #0F62FE;        /* Trust Blue */
    --tfm-primary-glow: rgba(15, 98, 254, 0.4);
    --tfm-accent: #00F5D4;         /* Cyber Teal */
    --tfm-accent-glow: rgba(0, 245, 212, 0.3);
    --tfm-bg-dark: #070913;        /* Midnight Tech Background */
    --tfm-card-bg: #0E1326;        /* Deep Slate Card Background */
    --tfm-border-color: rgba(255, 255, 255, 0.08);
    --tfm-text-primary: #F1F5F9;   /* Off-white */
    --tfm-text-secondary: #94A3B8; /* Slate gray */
    --tfm-border-radius: 16px;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--tfm-bg-dark) !important;
    color: var(--tfm-text-primary) !important;
}

/* Override Blocksy default container/page backgrounds on front page to maintain dark aesthetic */
.home #main, 
.home .entry-content,
.home article,
.home #main-container,
.home .hero-section {
    background-color: var(--tfm-bg-dark) !important;
    color: var(--tfm-text-primary) !important;
}

/* Headings */
.home h1, .home h2, .home h3, .home h4, .home h5, .home h6 {
    color: var(--tfm-text-primary) !important;
}

/* Base button and interaction styles */
.button, 
button, 
input[type="submit"], 
.woocommerce a.button,
.woocommerce button.button {
    background-color: var(--tfm-primary) !important;
    color: #ffffff !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 14px var(--tfm-primary-glow) !important;
    text-transform: none !important;
}

.button:hover, 
button:hover, 
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: #024dfd !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 98, 254, 0.6) !important;
}

/* Secondary Outline Button */
.button-secondary {
    background-color: transparent !important;
    color: var(--tfm-accent) !important;
    border: 1px solid var(--tfm-accent) !important;
    box-shadow: 0 4px 12px var(--tfm-accent-glow) !important;
}

.button-secondary:hover {
    background-color: rgba(0, 245, 212, 0.05) !important;
    box-shadow: 0 8px 24px var(--tfm-accent-glow) !important;
    transform: translateY(-2px);
}

/* Split Hero Section Styling */
.tfm-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-gap: 40px;
    align-items: center;
    padding: 80px 48px;
    background: radial-gradient(circle at 10% 20%, rgba(15, 98, 254, 0.15), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(0, 245, 212, 0.1), transparent 40%),
                linear-gradient(180deg, #0B0E1E 0%, #070913 100%);
    border-radius: var(--tfm-border-radius);
    margin-bottom: 48px;
    border: 1px solid var(--tfm-border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tfm-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tfm-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 16px 0 24px 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tfm-hero p {
    font-size: 1.2rem;
    color: var(--tfm-text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 580px;
}

.tfm-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Simulated IDE / Code Terminal Widget */
.tfm-terminal {
    background-color: #05070F;
    border: 1px solid var(--tfm-border-color);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    width: 100%;
}

.tfm-terminal-header {
    background-color: #0E1224;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--tfm-border-color);
}

.tfm-terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot-red { background-color: #EF4444; }
.dot-yellow { background-color: #F59E0B; }
.dot-green { background-color: #10B981; }

.tfm-terminal-title {
    color: var(--tfm-text-secondary);
    font-size: 0.8rem;
    margin-left: 12px;
    letter-spacing: 0.05em;
}

.tfm-terminal-body {
    padding: 24px;
    margin: 0;
    line-height: 1.6;
    overflow-x: auto;
}

.tfm-terminal-body pre {
    margin: 0;
    background: transparent !important;
    padding: 0 !important;
}

.tfm-terminal-body code {
    color: #E2E8F0;
    background: transparent !important;
    padding: 0 !important;
}

/* Syntax Highlighting */
.code-keyword { color: #F43F5E; font-weight: 600; }
.code-string { color: #10B981; }
.code-variable { color: #60A5FA; }
.code-comment { color: #64748B; font-style: italic; }
.code-function { color: #F59E0B; }

/* Custom badge for Bento Tiles */
.tfm-badge {
    background-color: rgba(0, 245, 212, 0.1);
    color: var(--tfm-accent);
    border: 1px solid rgba(0, 245, 212, 0.2);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 16px;
    letter-spacing: 0.08em;
}

/* Bento Grid Layout */
.tfm-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 28px;
    margin: 48px 0;
}

.tfm-bento-tile {
    background: var(--tfm-card-bg);
    border-radius: var(--tfm-border-radius);
    padding: 36px;
    border: 1px solid var(--tfm-border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.tfm-bento-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none;
}

.tfm-bento-tile:hover {
    transform: translateY(-6px);
    border-color: var(--tfm-accent);
    box-shadow: 0 12px 30px var(--tfm-accent-glow);
}

/* Tile Sizes */
.tile-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #0E1326 0%, #090C1A 100%);
    border-left: 4px solid var(--tfm-primary);
}

.tile-large:hover {
    border-left-color: var(--tfm-accent);
    box-shadow: 0 12px 40px var(--tfm-primary-glow);
}

.tile-medium {
    grid-column: span 1;
    grid-row: span 2;
}

.tile-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Trust Signals Bar */
.tfm-trust-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 32px;
    background-color: var(--tfm-card-bg);
    border-radius: var(--tfm-border-radius);
    border: 1px solid var(--tfm-border-color);
    margin-top: 48px;
    gap: 32px;
}

.tfm-trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--tfm-text-primary);
}

.tfm-trust-item svg {
    color: var(--tfm-accent);
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 4px var(--tfm-accent-glow));
}

/* Responsive grid adjustments */
@media (max-width: 1200px) {
    .tfm-hero {
        padding: 60px 32px;
        grid-gap: 32px;
    }
    .tfm-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .tfm-hero {
        grid-template-columns: 1fr;
        padding: 48px 24px;
    }
    .tfm-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tile-large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .tfm-hero h1 {
        font-size: 2.2rem;
    }
    .tfm-bento-grid {
        grid-template-columns: 1fr;
    }
    .tile-large, .tile-medium, .tile-small {
        grid-column: span 1;
        grid-row: span 1;
    }
    .tfm-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
}

/* Header styling overrides to make the entire header dark */
header#header,
.ct-header,
.ct-header-archive,
.header-row,
.ct-header-row,
[data-row],
[data-device],
.ct-container,
[data-id="main-header"],
.ct-header-active,
.site-header {
    background-color: var(--tfm-bg-dark) !important;
    background: var(--tfm-bg-dark) !important;
    border-bottom: 1px solid var(--tfm-border-color) !important;
}

/* Reset inner columns and grid items to transparent */
.ct-header-row > div,
.ct-header-row .ct-container,
.ct-header-grid {
    background-color: transparent !important;
    background: transparent !important;
}

/* Make header links and elements light-slate / white */
.ct-header a, 
.ct-header .ct-menu-link,
.ct-header .site-title,
.ct-header .custom-logo-link,
.ct-header-row a,
.ct-header-row span,
.ct-header-row div,
.ct-header-row li {
    color: var(--tfm-text-primary) !important;
}

.ct-header a:hover, 
.ct-header .ct-menu-link:hover,
.ct-header-row a:hover,
.ct-header-row li a:hover {
    color: var(--tfm-accent) !important;
}

/* Ensure search icons, cart icons, responsive mobile toggles, or other SVG elements in header are styled light slate */
.ct-header svg,
.ct-header-row svg,
.ct-header-trigger svg {
    fill: var(--tfm-text-primary) !important;
    stroke: var(--tfm-text-primary) !important;
    color: var(--tfm-text-primary) !important;
}

.ct-header a:hover svg,
.ct-header-row a:hover svg,
.ct-header-row button:hover svg {
    fill: var(--tfm-accent) !important;
    stroke: var(--tfm-accent) !important;
    color: var(--tfm-accent) !important;
}

/* Hide site-title text when custom logo image is displayed for a cleaner, premium design */
.site-branding .site-logo-container + .site-title-container {
    display: none !important;
}

/* Remove wasted space and hide the default page title on home page */
.home .entry-header,
.home .page-title,
.home .hero-section {
    display: none !important;
}

.home .site-main,
.home .ct-container-full,
.home #main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.home [data-vertical-spacing*="top"] {
    --vertical-spacing-top: 0px !important;
    padding-top: 0 !important;
}

/* Eliminate any margin/padding on the main container child elements before the hero */
.home article {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.home .woocommerce-notices-wrapper {
    margin: 0 !important;
}

/* Custom logo branding text alignment, transitions and responsiveness */
.custom-logo-link,
.site-logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}

.tfm-logo-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--tfm-text-primary) !important;
    white-space: nowrap !important;
    letter-spacing: -0.01em !important;
    transition: color 0.25s ease !important;
}

.custom-logo-link:hover .tfm-logo-text,
.site-logo-container:hover .tfm-logo-text {
    color: var(--tfm-accent) !important;
}

/* Ensure responsiveness on narrower devices */
@media (max-width: 480px) {
    .tfm-logo-text {
        font-size: 0.8rem !important;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 360px) {
    .tfm-logo-text {
        display: none !important;
    }
}
