/* Custom styles for xFOOTAGEx */
/* Dark Theme - WCAG 2.1 AA Compliant */

/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-elevated: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
    --accent: #00ff00;
    --accent-hover: #33ff33;
}

/* ===========================
   Base Styles
   =========================== */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: Monaco, Menlo, "Courier New", monospace;
}

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--text-primary);
    font-family: Monaco, Menlo, "Courier New", monospace;
}

p,
.paragraph {
    font-family: Monaco, Menlo, "Courier New", monospace;
    color: var(--text-secondary);
}

.text-dark {
    color: var(--text-primary) !important;
}

.text-color {
    color: var(--text-secondary);
}

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

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

a.text-dark:hover {
    color: var(--accent) !important;
}

/* ===========================
   Navigation
   =========================== */
.headroom {
    background-color: var(--bg-secondary);
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    animation: terminal-glitch 2s infinite;
}

@keyframes terminal-glitch {
    0% {
        filter: drop-shadow(0 0 2px #00ff00);
        transform: translate(0);
    }
    2% {
        filter: drop-shadow(0 0 8px #00ff00);
        transform: translate(-1px, 1px);
    }
    4% {
        filter: drop-shadow(0 0 2px #00ff00);
        transform: translate(0);
    }
    5% {
        filter: drop-shadow(0 0 10px #00ff00);
        transform: translate(1px, -1px);
    }
    6% {
        filter: drop-shadow(0 0 2px #00ff00);
        transform: translate(0);
    }
    8% {
        filter: drop-shadow(0 0 6px #00ff00);
        transform: translate(-1px, 0);
    }
    10% {
        filter: drop-shadow(0 0 2px #00ff00);
        transform: translate(0);
    }
    12% {
        filter: drop-shadow(0 0 8px #00ff00);
        transform: translate(1px, 1px);
    }
    14% {
        filter: drop-shadow(0 0 2px #00ff00);
        transform: translate(0);
    }
    100% {
        filter: drop-shadow(0 0 2px #00ff00);
        transform: translate(0);
    }
}

.navbar .nav-item .nav-link {
    color: var(--text-primary);
    font-family: Monaco, Menlo, "Courier New", monospace;
}

.navbar .nav-item .nav-link:hover {
    color: var(--accent);
}

.navbar .dropdown-menu {
    background: var(--bg-elevated);
    box-shadow: 0px 3px 9px 0px rgba(0, 0, 0, 0.4);
    font-family: Monaco, Menlo, "Courier New", monospace;
}

.navbar .dropdown-item {
    color: var(--text-primary);
    font-family: Monaco, Menlo, "Courier New", monospace;
}

.navbar .dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent);
}

.navbar .dropdown-item:active {
    background-color: var(--accent);
    color: #fff;
}

/* Mobile hamburger menu icon - green theme */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2300ff00' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Search icon in navbar */
.search-icon .ti-search {
    color: var(--text-primary) !important;
}

/* ===========================
   Footer
   =========================== */
.bg-secondary {
    background-color: var(--bg-secondary) !important;
}

footer .section {
    padding-top: 1rem !important;
}

footer .img-fluid {
    max-height: 50px;
    width: auto;
}

footer .row {
    align-items: center;
}

@media (max-width: 767px) {
    footer .row {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        justify-content: center !important;
    }

    footer .col-md-auto {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

footer h6 {
    color: var(--text-primary);
}

footer .font-secondary,
footer .list-unstyled li {
    color: var(--text-secondary) !important;
}

footer .list-inline-item a {
    color: var(--text-primary);
}

footer .list-inline-item a:hover {
    color: var(--accent);
}

footer .text-center p {
    color: var(--text-secondary);
}

/* ===========================
   Forms
   =========================== */
.form-control {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
    font-family: Monaco, Menlo, "Courier New", monospace;
}

.form-control:focus {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--accent);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* Search box in sidebar */
.search-box i {
    color: var(--text-secondary);
}

/* ===========================
   Buttons
   =========================== */
.btn {
    font-family: Monaco, Menlo, "Courier New", monospace;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-light {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ===========================
   Cards & Overlays
   =========================== */
.card {
    background-color: var(--bg-secondary);
}

.card-img-overlay::before {
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.7));
}

/* ===========================
   Widgets & Sidebar
   =========================== */
.widget {
    border-color: var(--border-color) !important;
}

.widget h6 {
    color: var(--text-primary);
}

.widget .list-inline-item,
.widget .media-body .list-inline-item {
    color: var(--text-secondary);
}

.tag-list li a {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.tag-list li a:hover {
    color: var(--accent);
}

/* Post thumbnails in sidebar */
.post-thumb-sm {
    border: 1px solid var(--border-color);
}

/* ===========================
   Blockquote
   =========================== */
blockquote {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

/* ===========================
   Pagination
   =========================== */
.pagination .page-item .page-link {
    color: var(--text-secondary);
    background: transparent;
}

.pagination .page-item .page-link:hover {
    color: var(--text-primary);
    background: transparent;
}

.pagination .page-item.active .page-link {
    color: var(--text-primary);
    background: transparent;
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    background-image: linear-gradient(
        var(--bg-primary) 45%,
        var(--bg-secondary) 0
    );
}

/* ===========================
   Dividers (Layout 2)
   =========================== */
.dividers .divider {
    border-color: var(--border-color);
}

.dividers .divider:first-child {
    border-left-color: var(--border-color);
}

/* ===========================
   Title Borders
   =========================== */
.title-border::before,
.title-border-lg::before {
    background: var(--border-color);
}

/* ===========================
   Instagram Feed
   =========================== */
.instagram-post::before {
    background: rgba(0, 0, 0, 0.6);
}

.instagram-post ul a:hover {
    color: var(--accent) !important;
}

/* ===========================
   Preloader
   =========================== */
.preloader {
    background-color: var(--bg-primary);
}

.preloader .loader .dot {
    background: #00ff00 !important;
    box-shadow: 0 0 10px #00ff00;
}

.preloader .loader .dots span {
    background: #00ff00 !important;
    box-shadow: 0 0 10px #00ff00;
}

/* ===========================
   Selection
   =========================== */
::selection {
    background: var(--accent);
    color: #fff;
}

::-moz-selection {
    background: var(--accent);
    color: #fff;
}

/* ===========================
   Scrollbar (Optional Enhancement)
   =========================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ===========================
   Content Area
   =========================== */
.content {
    color: var(--text-secondary);
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: var(--text-primary);
}

.content a {
    color: var(--accent);
}

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

/* ===========================
   Article Styles
   =========================== */
.article-full-width .post-content,
.article-full-width .post-meta {
    color: var(--text-secondary);
}

/* ===========================
   Border Utilities
   =========================== */
.border-primary {
    border-color: var(--border-color) !important;
}

/* ===========================
   Gallery Styles
   =========================== */
/* Homepage gallery carousel */
.featured-post-slider .card {
    height: 550px;
    overflow: hidden;
    position: relative;
}

.featured-post-slider .card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-list-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.gallery-grid-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.gallery-thumb {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-thumb:hover .gallery-grid-image {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ===========================
   Blog Styles
   =========================== */
.blog-list-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
/* ===========================
   Color Overrides - Green Theme
   =========================== */
/* Override theme background colors */
.tag-list li a:hover,
.btn-primary,
.pagination .page-item.active .page-link,
.btn-outline-light:hover {
    background: #00ff00 !important;
}

/* Override theme text/border colors */
.title-border::before,
.title-border-lg::before,
a:hover,
.footer-content .img-responsive:hover,
.tag-list li a:hover {
    color: #00ff00 !important;
}

.btn-outline-light,
.btn-outline-light:focus {
    border-color: #00ff00 !important;
    color: #00ff00 !important;
}

/* Additional overrides for theme elements */
.btn-transparent {
    color: #00ff00 !important;
}

.btn-transparent:hover {
    color: #00ff00 !important;
}

hr {
    border-color: #00ff00 !important;
}

.content a:hover,
.footer-content a:hover {
    color: #00ff00 !important;
}

/* ===========================
   Carousel Gallery Button
   =========================== */
.carousel-gallery-btn {
    color: #00ff00;
    border-color: #00ff00;
    padding: 12px 32px !important;
    font-size: 1rem !important;
}

.carousel-gallery-btn:hover {
    background-color: #00ff00 !important;
    border-color: #00ff00 !important;
    color: #000 !important;
}

/* ===========================
   Barbed Wire Divider
   =========================== */
.barbed-wire-divider {
    text-align: center;
    color: #00ff00;
    margin: 1.5rem 0 0 0;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: pre;
    font-family: Monaco, Menlo, "Courier New", monospace;
}

/* Pull up Latest Posts section */
.section:has(> .container > .row > .col-12 > h2) {
    margin-top: -2rem;
}

/* ===========================
   Page Buttons Hover Effect
   =========================== */
.read-more-btn,
.view-gallery-btn,
.view-photoshoot-btn,
.back-button {
    color: #00ff00;
    border-color: #00ff00;
    padding: 12px 32px !important;
    font-size: 1rem !important;
}

.read-more-btn:hover,
.view-gallery-btn:hover,
.view-photoshoot-btn:hover,
.back-button:hover {
    background-color: #00ff00 !important;
    border-color: #00ff00 !important;
    color: #000 !important;
}