/*
Theme Name: Brandon 2026
Theme URI: https://brandonhubbard.com
Author: Brandon Hubbard
Author URI: https://brandonhubbard.com
Description: A modern, minimal block theme with a dark aesthetic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brandon2026
Tags: block-patterns, block-styles, editor-style, full-site-editing, wide-blocks, dark-mode
*/

/* --- Custom Scrollbar (Electric Violet) --- */

::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

::-webkit-scrollbar-track {
    background: var(--wp--preset--color--charcoal) !important;
}

::-webkit-scrollbar-thumb {
    background-color: var(--wp--preset--color--electric-violet) !important;
    border: 2px solid var(--wp--preset--color--electric-violet) !important;
    border-radius: 20px !important;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--wp--preset--color--electric-violet) !important;
}

/* Firefox */
html {
    scrollbar-width: thin !important;
    scrollbar-color: var(--wp--preset--color--electric-violet) var(--wp--preset--color--charcoal) !important;
}

/* --- Text Selection (Electric Violet) --- */

::selection {
    background-color: var(--wp--preset--color--electric-violet);
    color: var(--wp--preset--color--titanium);
}

::-moz-selection {
    background-color: var(--wp--preset--color--electric-violet);
    color: var(--wp--preset--color--titanium);
}

/* --- Separator Block Styles --- */

/* Separator: Thin */
.wp-block-separator.is-style-thin {
    border-top-width: 1px !important;
    height: 1px !important;
}

/* Separator: Fade Left */
.wp-block-separator.is-style-fade-left {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(to left, currentColor, transparent) !important;
}

/* Separator: Fade Right */
.wp-block-separator.is-style-fade-right {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(to right, currentColor, transparent) !important;
}

/* Separator: Fade Through */
.wp-block-separator.is-style-fade-through {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(to right, transparent, currentColor 50%, transparent) !important;
}

/* Separator: Shimmer (Animated) */
@keyframes separator-shimmer {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 100% 0;
    }
}

.wp-block-separator.is-style-shimmer {
    border: none !important;
    height: 2px !important;
    background: repeating-linear-gradient(90deg,
            transparent 0%,
            transparent 45%,
            currentColor 50%,
            transparent 55%,
            transparent 100%) !important;
    background-size: 200% 100% !important;
    animation: separator-shimmer 1.5s linear infinite !important;
}

/* --- Details/Accordion Block Styles --- */

/* Accordion: Bordered */
.wp-block-details.is-style-bordered {
    border: 1px solid var(--wp--preset--color--concrete) !important;
    border-radius: 8px !important;
    padding: 1rem 1.25rem !important;
    transition: border-color 0.2s ease !important;
}

.wp-block-details.is-style-bordered:hover {
    border-color: var(--wp--preset--color--steel) !important;
}

.wp-block-details.is-style-bordered summary {
    cursor: pointer !important;
}

/* Accordion: Minimal */
.wp-block-details.is-style-minimal {
    border: none !important;
    border-bottom: 1px solid var(--wp--preset--color--concrete) !important;
    border-radius: 0 !important;
    padding: 1rem 0 !important;
}

.wp-block-details.is-style-minimal summary {
    cursor: pointer !important;
}

/* Accordion: Card */
.wp-block-details.is-style-card {
    background: var(--wp--preset--color--charcoal) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.wp-block-details.is-style-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

.wp-block-details.is-style-card summary {
    cursor: pointer !important;
}

/* Accordion: Highlight */
.wp-block-details.is-style-highlight {
    border: none !important;
    border-left: 3px solid var(--wp--preset--color--electric-violet) !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.25rem !important;
    background: rgba(139, 92, 246, 0.05) !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

.wp-block-details.is-style-highlight:hover {
    background: rgba(139, 92, 246, 0.1) !important;
}

.wp-block-details.is-style-highlight summary {
    cursor: pointer !important;
}

/* --- Table Block Styles --- */

/* Table: Common Header/Footer Styling */
.wp-block-table thead th {
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    color: var(--wp--preset--color--titanium) !important;
}

.wp-block-table tfoot td {
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    color: var(--wp--preset--color--steel) !important;
}

/* Table: Striped */
.wp-block-table.is-style-striped tbody tr:nth-child(odd) {
    background-color: var(--wp--preset--color--charcoal) !important;
}

.wp-block-table.is-style-striped tbody tr:nth-child(even) {
    background-color: var(--wp--preset--color--void) !important;
}

.wp-block-table.is-style-striped th,
.wp-block-table.is-style-striped td {
    border: none !important;
    padding: 1rem 1.25rem !important;
    color: var(--wp--preset--color--steel) !important;
}

.wp-block-table.is-style-striped thead tr {
    background-color: var(--wp--preset--color--concrete) !important;
}

.wp-block-table.is-style-striped thead th {
    padding: 1rem 1.25rem !important;
    border-bottom: 2px solid var(--wp--preset--color--electric-violet) !important;
    color: var(--wp--preset--color--titanium) !important;
}

.wp-block-table.is-style-striped tfoot tr {
    background-color: var(--wp--preset--color--concrete) !important;
    border-top: 2px solid var(--wp--preset--color--electric-violet) !important;
}

.wp-block-table.is-style-striped tfoot td {
    padding: 1rem 1.25rem !important;
    color: var(--wp--preset--color--titanium) !important;
}

/* Table: Bordered */
.wp-block-table.is-style-bordered table {
    border-collapse: collapse !important;
    border: 1px solid var(--wp--preset--color--concrete) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.wp-block-table.is-style-bordered th,
.wp-block-table.is-style-bordered td {
    border: 1px solid var(--wp--preset--color--concrete) !important;
    padding: 1rem 1.25rem !important;
}

.wp-block-table.is-style-bordered thead tr {
    background-color: var(--wp--preset--color--charcoal) !important;
}

.wp-block-table.is-style-bordered thead th {
    border-bottom: 2px solid var(--wp--preset--color--steel) !important;
}

.wp-block-table.is-style-bordered tfoot tr {
    background-color: var(--wp--preset--color--charcoal) !important;
}

.wp-block-table.is-style-bordered tfoot td {
    border-top: 2px solid var(--wp--preset--color--steel) !important;
}

/* Table: Minimal */
.wp-block-table.is-style-minimal table {
    border-collapse: collapse !important;
}

.wp-block-table.is-style-minimal th,
.wp-block-table.is-style-minimal td {
    border: none !important;
    border-bottom: 1px solid var(--wp--preset--color--concrete) !important;
    padding: 1rem 1.25rem !important;
}

.wp-block-table.is-style-minimal thead th {
    border-bottom: 2px solid var(--wp--preset--color--steel) !important;
    padding-bottom: 0.75rem !important;
}

.wp-block-table.is-style-minimal tbody tr:last-child td {
    border-bottom: none !important;
}

.wp-block-table.is-style-minimal tfoot td {
    border-top: 2px solid var(--wp--preset--color--steel) !important;
    border-bottom: none !important;
    padding-top: 0.75rem !important;
}

/* Table: Highlight Header */
.wp-block-table.is-style-highlight-header table {
    border-collapse: collapse !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.wp-block-table.is-style-highlight-header th,
.wp-block-table.is-style-highlight-header td {
    border: none !important;
    padding: 1rem 1.25rem !important;
}

.wp-block-table.is-style-highlight-header thead tr {
    background: linear-gradient(135deg, var(--wp--preset--color--electric-violet), var(--wp--preset--color--info-blue)) !important;
}

.wp-block-table.is-style-highlight-header thead th {
    color: var(--wp--preset--color--titanium) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.wp-block-table.is-style-highlight-header tbody tr {
    border-bottom: 1px solid var(--wp--preset--color--concrete) !important;
    transition: background-color 0.15s ease !important;
}

.wp-block-table.is-style-highlight-header tbody tr:hover {
    background-color: rgba(139, 92, 246, 0.08) !important;
}

.wp-block-table.is-style-highlight-header tfoot tr {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15)) !important;
    border-top: 1px solid var(--wp--preset--color--electric-violet) !important;
}

.wp-block-table.is-style-highlight-header tfoot td {
    color: var(--wp--preset--color--titanium) !important;
    font-weight: 500 !important;
}

/* --- Project Card Styles --- */

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
}

.project-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15) !important;
}

.project-card .wp-block-post-featured-image {
    overflow: hidden !important;
}

.project-card .wp-block-post-featured-image img {
    transition: transform 0.4s ease !important;
}

.project-card:hover .wp-block-post-featured-image img {
    transform: scale(1.05) !important;
}

.project-card .wp-block-post-title a {
    transition: color 0.2s ease !important;
}

.project-card:hover .wp-block-post-title a {
    color: var(--wp--preset--color--electric-violet) !important;
}

/* --- Button Hover Effects --- */

.wp-block-button__link {
    transition: all 0.2s ease !important;
}

/* Filled buttons - subtle lift and glow */
.wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Electric Violet buttons - glow effect */
.wp-block-button__link.has-electric-violet-background-color:hover {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
}

/* Titanium/white buttons - subtle shadow */
.wp-block-button__link.has-titanium-background-color:hover {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2) !important;
}

/* Outline/ghost buttons - border and text color shift */
.wp-block-button__link.has-charcoal-background-color:hover,
.wp-block-button__link.has-void-background-color:hover {
    border-color: var(--wp--preset--color--electric-violet) !important;
    color: var(--wp--preset--color--electric-violet) !important;
}

/* Active/pressed state */
.wp-block-button__link:active {
    transform: translateY(0) !important;
    box-shadow: none !important;
}

/* --- Pagination Styles --- */

.wp-block-query-pagination {
    margin-top: 4rem !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.wp-block-query-pagination-numbers {
    display: flex !important;
    gap: 0.5rem !important;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next,
.wp-block-query-pagination-numbers .page-numbers {
    background: var(--wp--preset--color--charcoal) !important;
    color: var(--wp--preset--color--titanium) !important;
    border: 1px solid var(--wp--preset--color--concrete) !important;
    border-radius: 8px !important;
    padding: 0.5rem 1rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-numbers .page-numbers:hover {
    border-color: var(--wp--preset--color--electric-violet) !important;
    color: var(--wp--preset--color--electric-violet) !important;
    background: var(--wp--preset--color--void) !important;
    transform: translateY(-2px) !important;
}

.wp-block-query-pagination-numbers .page-numbers.current {
    background: var(--wp--preset--color--electric-violet) !important;
    border-color: var(--wp--preset--color--electric-violet) !important;
    color: var(--wp--preset--color--titanium) !important;
    pointer-events: none !important;
}

.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
}

/* --- Stacking Card Effect (Projects) --- */

/* 1. Ensure the query block is relative for sticky children context */
.wp-block-query {
    position: relative !important;
}

/* 2. Target the post template grid (ul) - Make it block to stack vertically */
.wp-block-post-template.is-layout-grid {
    display: block !important;
    position: relative !important;
    padding-bottom: 10vh !important;
    /* Extra scroll space at bottom */
}

/* 3. The card container (li) */
.wp-block-post-template.is-layout-grid>li {
    display: block !important;
    position: sticky !important;
    top: 120px !important;
    /* Sticky point */
    margin-bottom: 40px !important;
    /* Gap */
    min-height: 400px !important;
    max-width: 800px !important;
    /* Limit width since grid is now block */
    margin-left: auto !important;
    margin-right: auto !important;

    /* Visuals for the card effect */
    background: var(--wp--preset--color--charcoal) !important;
    border: 1px solid var(--wp--preset--color--concrete) !important;
    border-radius: 16px !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3) !important;
    /* Top shadow for depth */

    /* Animation */
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
    transform-origin: center top !important;
}

/* Slight transform on hover */
.wp-block-post-template.is-layout-grid>li:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 -12px 32px rgba(139, 92, 246, 0.2) !important;
    border-color: var(--wp--preset--color--steel) !important;
}

/* 4. Ensure inner content stretches */
.wp-block-post-template.is-layout-grid>li>.project-card {
    height: 100% !important;
    background: none !important;
    /* Remove inner card bg */
    box-shadow: none !important;
    /* Remove inner shadow */
    border: none !important;
}

/* --- Animated Project Patterns --- */

/* 1. Hover Reveal */
.hover-reveal-card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    aspect-ratio: 4/3 !important;
}

.hover-reveal-card .wp-block-cover {
    height: 100% !important;
    transition: transform 0.5s ease !important;
}

.hover-reveal-card:hover .wp-block-cover {
    transform: scale(1.1) !important;
}

.hover-reveal-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 2rem !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent) !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0 !important;
}

.hover-reveal-card:hover .hover-reveal-content {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* 2. 3D Tilt/Float */
.tilt-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
    transform-style: preserve-3d !important;
    perspective: 1000px !important;
}

.tilt-card:hover {
    transform: translateY(-10px) rotateX(2deg) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2) !important;
    z-index: 10 !important;
}

/* 3. Horizontal Scroll Snap */
.horizontal-scroll-container {
    display: flex !important;
    gap: 2rem !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 2rem !important;
    scrollbar-width: none !important;
    /* Hide scrollbar Firefox */
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none !important;
    /* Hide scrollbar Chrome */
}

.horizontal-scroll-item {
    flex: 0 0 80vw !important;
    /* Mobile */
    scroll-snap-align: center !important;
}

@media (min-width: 768px) {
    .horizontal-scroll-item {
        flex: 0 0 45vw !important;
        /* Desktop */
    }
}

/* 4. Marquee (Infinite Scroll) */
.marquee-container {
    overflow: hidden !important;
    white-space: nowrap !important;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent) !important;
}

.marquee-track {
    display: flex !important;
    gap: 2rem !important;
    animation: marquee 30s linear infinite !important;
    width: max-content !important;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused !important;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 5. Spotlight List */
.spotlight-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
}

.spotlight-item {
    transition: opacity 0.4s ease, transform 0.4s ease !important;
    opacity: 1 !important;
    cursor: pointer !important;
}

.spotlight-list:hover .spotlight-item:not(:hover) {
    opacity: 0.3 !important;
    filter: grayscale(1) !important;
    transform: scale(0.98) !important;
}


/* --- House of Giants Style Patterns --- */

/* Hero Glow Effect */
.hog-hero-glow {
    position: relative !important;
    overflow: hidden !important;
}

.hog-hero-glow::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60% !important;
    height: 100% !important;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* Gradient Text Utility */
.hog-gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Status Pulse Indicator */
.status-pulse-indicator {
    width: 10px !important;
    height: 10px !important;
    background-color: var(--wp--preset--color--signal-success) !important;
    border-radius: 50% !important;
    position: relative !important;
    margin-right: 8px !important;
}

.status-pulse-indicator::after {
    content: '' !important;
    position: absolute !important;
    top: -4px !important;
    left: -4px !important;
    right: -4px !important;
    bottom: -4px !important;
    border: 1px solid var(--wp--preset--color--signal-success) !important;
    border-radius: 50% !important;
    animation: status-pulse 2s infinite !important;
    opacity: 0 !important;
}

@keyframes status-pulse {
    0% {
        transform: scale(0.8) !important;
        opacity: 0.8 !important;
    }

    100% {
        transform: scale(2) !important;
        opacity: 0 !important;
    }
}

/* Service Card Styles */
.hog-service-card {
    transition: all 0.3s ease !important;
}

.hog-service-card:hover {
    border-color: var(--wp--preset--color--electric-violet) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1) !important;
}

.hog-service-card svg {
    transition: stroke 0.3s ease !important;
}

.hog-service-card:hover svg {
    stroke: var(--wp--preset--color--electric-violet) !important;
}

/* Deliverables List (Neon/Electric Bullet) */
.hog-deliverables-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.hog-deliverables-list li {
    position: relative !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    color: var(--wp--preset--color--steel) !important;
    font-size: 0.9rem !important;
}