/* Custom Industrial Styling System for Elementy 3D */

/* Font Definitions and Utilities */
:root {
    --color-primary: #051125;
    --color-secondary: #F77F00;
    --color-outline: #415A77;
    --color-surface: #f8f9fa;
    --color-border-light: #e9ecef;
}

/* Blueprint grid texture matching spacing rules in DESIGN.md */
.bg-blueprint {
    background-color: var(--color-surface);
    background-image:
        linear-gradient(rgba(65, 90, 119, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 90, 119, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: center center;
}

.bg-blueprint-dense {
    background-image:
        linear-gradient(rgba(65, 90, 119, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 90, 119, 0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    background-position: center center;
}

.bg-blueprint-heavy {
    background-image:
        linear-gradient(to right, rgba(65, 90, 119, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(65, 90, 119, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* Scrollbar customized for sleek technical look */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-surface);
}

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

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

/* Interactive lift effect - moves 2px up with high precision shadow */
.interactive-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(5, 17, 37, 0.08);
}

/* Form input focus active state transitions */
.form-input-technical {
    border: 1px solid var(--color-outline);
    border-radius: 0.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input-technical:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(5, 17, 37, 0.1);
    outline: none;
}

/* 3D Canvas dynamic styles */
#threejs-container {
    background-color: #051125;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
}

.technical-overlay {
    pointer-events: none;
    user-select: none;
}

/* ==========================================
   WordPress Navigation Menu styling matching
   mockup styles exactly (Inter, caps, colors)
   ========================================== */

/* Main Header Navigation styling */
header nav ul {
    display: flex;
    gap: 2rem; /* gap-8 */
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0;
    padding: 0;
}

header nav ul li a {
    font-family: 'Inter', sans-serif;
    font-size: 12px; /* text-label-caps */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #45474d; /* text-on-surface-variant */
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.dark header nav ul li a {
    color: #f8f9fa; /* dark mode text-on-surface */
}

header nav ul li a:hover {
    color: #954a00; /* hover:text-secondary */
    border-bottom-color: rgba(149, 74, 0, 0.5); /* hover:border-secondary/50 */
}

/* Active Menu Item States */
header nav ul li.current-menu-item a,
header nav ul li.current_page_item a {
    color: #954a00; /* text-secondary */
    border-bottom-color: #954a00; /* border-secondary */
}

.dark header nav ul li.current-menu-item a,
.dark header nav ul li.current_page_item a {
    color: #ffb784; /* secondary-fixed-dim / dynamic dark orange */
    border-bottom-color: #ffb784;
}

/* Mobile Drawer navigation styles */
#mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* gap-6 */
    text-align: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu ul li {
    margin: 0;
    padding: 0;
}

#mobile-menu ul li a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    color: #ffffff;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

#mobile-menu ul li a:hover,
#mobile-menu ul li.current-menu-item a {
    color: #ff850d; /* secondary-container / orange */
}

/* ==========================================
   Footer navigation menus (Dynamic Support)
   ========================================== */
footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* gap-2 */
    list-style: none;
    margin: 0;
    padding: 0;
}

footer ul li {
    margin: 0;
    padding: 0;
}

footer ul li a {
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* text-body-md */
    font-weight: 400;
    color: rgba(248, 249, 250, 0.7); /* text-surface-variant/70 */
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: #ff850d; /* secondary-container / orange */
}

/* ==========================================
   WordPress Comments List & Form Styling
   ========================================== */

.comment-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.comment-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    background-color: #ffffff;
    border: 1px solid rgba(65, 90, 119, 0.25);
    border-radius: 4px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(5, 17, 37, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-body:hover {
    border-color: var(--color-outline);
    box-shadow: 0 4px 8px rgba(5, 17, 37, 0.05);
}

/* Blueprint watermark for top-level comments */
.comment-list > li > .comment-body::after {
    content: "COM // LEVEL_01";
    position: absolute;
    top: 6px;
    right: 12px;
    font-family: monospace;
    font-size: 8px;
    color: rgba(65, 90, 119, 0.25);
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.1em;
}

/* Meta wrapper - displays avatar, author name, and date */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-b: 1px solid rgba(65, 90, 119, 0.1);
    padding-bottom: 0.75rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-author .avatar {
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    object-cover: cover;
}

.comment-author cite.fn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    font-style: normal;
    color: var(--color-primary);
}

.comment-metadata {
    font-family: monospace;
    font-size: 10px;
    color: var(--color-outline);
    letter-spacing: 0.05em;
    margin-left: auto; /* Push date/time to the right */
}

.comment-metadata a {
    color: var(--color-outline);
    transition: color 0.2s ease;
}

.comment-metadata a:hover {
    color: var(--color-secondary);
}

/* Comment text content */
.comment-content {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #45474d; /* text-on-surface-variant */
}

.comment-content p {
    margin: 0;
}

/* Reply link button styled as small industrial label */
.reply {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.reply a {
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-outline);
    background-color: rgba(65, 90, 119, 0.06);
    border: 1px solid rgba(65, 90, 119, 0.15);
    border-radius: 2px;
    padding: 0.25rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    display: inline-block;
}

.reply a:hover {
    color: #ffffff;
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-1px);
}

/* Threaded replies indentations & styling */
.comment-list .children {
    list-style: none;
    margin-left: 2.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(247, 127, 0, 0.25); /* Subtle orange left border */
}

@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }
    
    .comment-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .comment-metadata {
        margin-left: 0;
        width: 100%;
    }
}

/* InPost Paczkomat Map Widget Native Dialog styles */
dialog#paczkomat-modal::backdrop {
    background-color: rgba(5, 17, 37, 0.6);
    backdrop-filter: blur(4px);
    transition: backdrop-filter 0.3s ease;
}

dialog#paczkomat-modal {
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}


