/*
Theme Name: Blocksy Child
Theme URI: [https://perfrig.com](https://perfrig.com)
Description: Child theme for customizing Blocksy
Author: PERFRIG
Template: blocksy
Version: 1.0.0
*/

body {
    background: radial-gradient(circle at center, #121212 0%, #0D0D0D 80%);
    color: #C0C0C0;
}

/* Homepage — matches team page background (#05080C = --pf-darker) */
body.home {
    background: #05080C;
}

/* ==================================================
   PERFRIG DESIGN SYSTEM
================================================== */

:root {
    /* Colors */
    --primary: #06D7F6;
    --secondary: #00FF9C;
    --accent: #0066FF;
    --dark: #0A0A0C;
    --darker: #05080C;
    --card: #14151A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #06D7F6, #0055FF);
    --gradient-bg: linear-gradient(135deg, #0A0A0C, #111318);
    --gradient-text: linear-gradient(90deg, #06D7F6, #00FF9C);
    
    /* Typography */
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --space-lg: 80px;
    --space-md: 30px;
    --space-sm: 20px;
    
    /* Borders */
    --radius-lg: 20px;
    --radius-md: 16px;
    --border-light: 1px solid rgba(255,255,255,0.05);
    
    /* Shadows */
    --shadow-card: 0 20px 40px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 30px rgba(6,215,246,0.2);
}

/* Apply to all sections */
section {
    width: 90%;
    max-width: 1400px;
    margin: var(--space-lg) auto;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Gradient titles */
.gradient-title {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* ==================================================
   ADDITIONAL ENHANCEMENTS - FIXED VERSION
================================================== */

/* Smooth scrolling for the whole site */
html {
    scroll-behavior: smooth;
}

/* Better focus styles for accessibility */
:focus {
    outline: 2px solid #06D7F6;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Loading animation for images - FIXED */
img {
    opacity: 1 !important; /* Force show all images */
}

/* Alternative: remove lazy loading fade effect entirely */
/*
img[loading="lazy"] {
    opacity: 1;
    transition: none;
}
*/

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #06D7F6, #0055FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(6, 215, 246, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(6, 215, 246, 0.4);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 215, 246, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-size: 14px;
    z-index: 1001;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0A0A0C;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06D7F6, #0055FF);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00F2EA, #0066FF);
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .featured-posts,
    .back-to-top,
    .load-more-container {
        display: none !important;
    }
}

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

/* footer */

/* =========================================================
   PERFRIG — FOOTER V2 — Compatible with perfrigChart.css
   ========================================================= */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* =================== Using perfrigChart variables =================== */
:root {
    --perfrig-primary: #06D7F6;
    --perfrig-secondary: #00FF9C;
    --perfrig-accent: #0066FF;
    --perfrig-dark: #0A0A0C;
    --perfrig-darker: #05080C;
    --perfrig-card: #14151A;
    --perfrig-sidebar: #111318;
    --perfrig-text-light: #ffffff;
    --perfrig-text-gray: #9CA3AF;
    --perfrig-text-dark-gray: #6B7280;
    --perfrig-border: rgba(255, 255, 255, 0.05);
    --perfrig-border-light: rgba(255, 255, 255, 0.1);
    --perfrig-gradient-primary: linear-gradient(135deg, #06D7F6, #0055FF);
    --perfrig-gradient-secondary: linear-gradient(135deg, #00FF9C, #00E5FF);
    --perfrig-gradient-text: linear-gradient(90deg, #06D7F6, #00FF9C);
    --perfrig-gradient-border: linear-gradient(135deg, rgba(6,215,246,.4), rgba(0,255,156,.4), rgba(6,215,246,.4));
    --perfrig-radius-sm: 12px;
    --perfrig-radius-md: 16px;
    --perfrig-radius-lg: 22px;
    --perfrig-shadow-glow: 0 0 35px rgba(6, 215, 246, 0.25);
    --perfrig-transition: 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =================== MAIN FOOTER =================== */
.footer-perfrig {
    background: var(--perfrig-dark);
    color: var(--perfrig-text-gray);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid var(--perfrig-border);
}

/* =================== Decorative elements =================== */
.footer-perfrig::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--perfrig-gradient-primary);
    opacity: 0.4;
}

.footer-perfrig::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: radial-gradient(circle at bottom, rgba(6,215,246,0.08), transparent 80%);
    pointer-events: none;
    z-index: 0;
}

.footer-perfrig .cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(6,215,246,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6,215,246,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* =================== Container =================== */
.footer-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* =================== Grid =================== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

/* =================== Column titles =================== */
.footer-col-title {
    font-family: 'Exo 2';
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--perfrig-text-light);
    position: relative;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--perfrig-gradient-text);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-col-title:hover::after {
    width: 60px;
}

/* =================== Links =================== */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--perfrig-text-gray);
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
    position: relative;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    color: var(--perfrig-primary);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--perfrig-primary);
    padding-left: 15px;
}

.footer-links a:hover::before {
    left: 0;
    opacity: 1;
}

/* =================== Social icons =================== */
.social-perfrig {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: nowrap;
}

.social-perfrig a {
    width: 40px;
    height: 40px;
    border-radius: var(--perfrig-radius-md);
    background: var(--perfrig-card);
    border: 1px solid var(--perfrig-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: var(--perfrig-transition);
    position: relative;
    overflow: hidden;
}

.social-perfrig a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--perfrig-gradient-primary);
    transition: 0.4s ease;
    z-index: -1;
}

.social-perfrig a:hover {
    transform: translateY(-5px);
    border-color: var(--perfrig-primary);
    box-shadow: var(--perfrig-shadow-glow);
    color: #fff;
}

.social-perfrig a:hover::before {
    left: 0;
}

/* Legacy platform colours (kept for back-compat) */
.social-perfrig .youtube:hover { background: #FF0000; border-color:#FF0000; }
.social-perfrig .twitter:hover { background: #1DA1F2; border-color:#1DA1F2; }
.social-perfrig .discord:hover { background: #5865F2; border-color:#5865F2; }
.social-perfrig .email:hover   { background: var(--perfrig-secondary); border-color:var(--perfrig-secondary); color:#000; }

/* SVG social icon links — ensure inline SVG is centred inside the 44×44 button */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

.footer-social-link:hover { color: #fff; }

/* Per-platform brand hover colours */
.footer-social-link.fb:hover  { background: #1877F2; border-color: #1877F2; }
.footer-social-link.x:hover   { background: #000;    border-color: rgba(255,255,255,0.5); }
.footer-social-link.yt:hover  { background: #FF0000; border-color: #FF0000; }
.footer-social-link.ig:hover  { background: #E1306C; border-color: #E1306C; }
.footer-social-link.pin:hover { background: #E60023; border-color: #E60023; }

/* =================== Logo with image =================== */
.footer-logo-image {
    margin-bottom: 20px;
    max-width: 180px;
    display: flex;
    justify-content: center; /* horizontal center only */
}

.footer-logo-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(1) drop-shadow(0 0 15px rgba(6,215,246,0.3));
    transition: var(--perfrig-transition);
}

.footer-logo-image:hover img {
    filter: brightness(1.1) drop-shadow(0 0 25px rgba(6,215,246,0.6));
    transform: scale(1.02);
}

/* =================== About text =================== */
.footer-about {
    margin: 15px 0;
    line-height: 1.7;
    font-size: 14px;
    color: var(--perfrig-text-gray);
}

/* =================== Newsletter =================== */
.newsletter-input {
    display: flex;
    background: var(--perfrig-card);
    border: 1px solid var(--perfrig-border);
    border-radius: var(--perfrig-radius-md);
    overflow: hidden;
    transition: 0.3s;
    max-width: 300px;
}

.newsletter-input:focus-within {
    border-color: var(--perfrig-primary);
    box-shadow: 0 0 0 2px rgba(6,215,246,0.2);
}

.newsletter-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: #fff;
}

.newsletter-input button {
    background: var(--perfrig-gradient-primary);
    border: none;
    padding: 0 18px;
    color: #fff;
    font-weight: 600;
    transition: 0.3s;
}

.newsletter-input button:hover {
    background: var(--perfrig-gradient-secondary);
}

/* =================== Copyright =================== */
.footer-copyright {
    background: var(--perfrig-darker);
    padding: 20px 0;
    text-align: center;
    color: var(--perfrig-text-dark-gray);
    border-top: 1px solid var(--perfrig-border);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--perfrig-gradient-border);
    margin: 30px 0;
}

/* =================== Mobile =================== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links a::before {
        display: none;
    }

    .social-perfrig {
        justify-content: center;
        margin-bottom: 20px; /* ← small improvement */
    }
}

#footer .ct-container, 
#footer .ct-container-fluid{
 margin: 0 !important;
 width: 100%;
    
}

#footer{
background: radial-gradient(circle at center, #121212 0%, #0D0D0D)
}

.footer-about-link {
    display: inline-block;
    color: #06D7F6;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.footer-about-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06D7F6, #00FF9C);
    border-radius: 2px;
    transition: width 0.35s ease;
}

.footer-about-link:hover {
    color: #00FF9C;
    letter-spacing: 0.5px;
}

.footer-about-link:hover::after {
    width: 100%;
}

.editor-styles-wrapper {
    background: #ffffff !important;
    color: #000000 !important;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper p {
    color: #000000 !important;
}

/* =========================================================
   PERFRIG — SHARED SECTION TITLE
   Reusable gradient heading treatment.
   Applied to: homepage "FOR YOU" h2, category hero h1,
   and any future section using .perfrig-section-title.
========================================================= */
.perfrig-section-title,
.foryou-inner h2,
.cat-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    background: var(--perfrig-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}
