/* Main background image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('art/bg-full-main.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    /* Green tint filter */
    filter: sepia(100%) hue-rotate(90deg) saturate(300%) brightness(1);
}

/* Ensure floating bg is above main bg but below content */
#floatingBg {
    z-index: -1;
}

/* CSS Variables - CodHub Style */
:root {
    --glass-bg: rgba(40, 40, 40, 0.08);
    --glass-border: rgba(100, 200, 100, 0.18);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --primary-bg: #1a1a1a;
    --gradient-1: #0d2618;
    --gradient-2: #1a2a1a;
    --gradient-3: #0f2d0f;
    --text-primary: #e0e0e0;
    --text-secondary: rgba(200, 200, 200, 0.7);
    --text-tertiary: rgba(180, 180, 180, 0.5);
    --accent-primary: #4CAF50;
    --accent-green: #66BB6A;
    --accent-green-bright: #81C784;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --blur-amount: 10px;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
h3,
h2,
p,
strong,
th,
.tip,
.warning,
.camo-name,
.camo-credit,
.no-select-container,
.no-select-container a {
    user-select: none;
    -webkit-user-select: none;
}

img {
    -webkit-user-drag: none;
    cursor: default;
}

body {
    font-family: var(--font-main);
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: clamp(14px, 1vw, 16px);
}

html {
    scroll-padding-top: 120px;
}

/* Floating Background Elements */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.float-item {
    position: absolute;
    opacity: 0.08;
    animation: float linear infinite;
    filter: blur(1px) grayscale(70%);
    object-fit: contain;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.08;
    }

    100% {
        transform: translateY(-220vh) rotate(360deg);
        opacity: 0;
    }
}

.float-small {
    max-width: 2%;
}

.float-medium {
    max-width: 7%;
}

.float-large {
    max-width: 12%;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transform-style: preserve-3d;
    transition: transform 0.2s ease;
    will-change: transform;
}

.container {
    max-width: 1400px;
    width: 90%;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* Header */
header {
    text-align: center;
    padding: 0;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 0.6s ease forwards;
    overflow: hidden;
}

.bigass-icon {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.4));
}

/* Navigation */
nav {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    position: sticky;
    top: var(--spacing-md);
    z-index: 100;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    text-decoration: none;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

nav a.active {
    background: rgba(76, 175, 80, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.icon-img {
    width: 30px;
    height: 30px;
}

/* Sections */
.section {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, #66BB6A, #81C784);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section h3 {
    font-size: 1.25rem;
    color: var(--accent-green-bright);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.header-icon {
    width: 32px;
    height: 32px;
}

/* Command Blocks */
.command-block {
    background: rgba(76, 175, 80, 0.02);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.command-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(76, 175, 80, 0.1) 50%,
            transparent 70%);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.command-block:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.command-block:hover {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.command-block code {
    display: block;
    color: var(--accent-green-bright);
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
}

.description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--spacing-sm);
}

.example {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    line-height: 1.8;
}

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

/* Tips and Warnings */
.tip,
.warning {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.tip {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid var(--accent-green);
}

.tip::before {
    content: "💡 ";
    font-size: 1.2em;
}

.warning {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #ff9800;
}

.warning::before {
    content: "⚠️ ";
    font-size: 1.2em;
}

/* Tables */
.compact-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
}

.compact-table th,
.compact-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.compact-table th {
    background: rgba(76, 175, 80, 0.1);
    color: var(--accent-green-bright);
    font-weight: var(--font-weight-semibold);
}

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

.compact-table tr:hover {
    background: rgba(76, 175, 80, 0.05);
}

.compact-table tbody tr td:first-child {
    cursor: pointer;
}

.icon-preview {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.control-key {
    color: var(--accent-green-bright);
    font-weight: var(--font-weight-semibold);
}

/* Camo Cards */
.vertical-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.camo-card {
    background: rgba(76, 175, 80, 0.02);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.camo-card:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.camo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-sm);
}

.camo-code {
    color: var(--accent-green);
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
    cursor: pointer;
    word-break: break-all;
    line-height: 1.2;
}

.camo-name {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.camo-game {
    width: 24px;
    height: 24px;
    margin-top: var(--spacing-sm);
}

.camo-credit {
    grid-column: 1 / -1;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Horizontal Preview */
.horizontal-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.hp-item {
    background: rgba(76, 175, 80, 0.02);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.hp-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.hp-item img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
}

.hp-label {
    color: var(--accent-green-bright);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.hp-desc {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Big Image Preview */
.hp-big {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    border: 3px solid rgba(76, 175, 80, 0.3);
    padding: 10px;
    background: rgba(20, 25, 30, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 0 50px rgba(76, 175, 80, 0.4);
    animation: fadeInBig 0.2s ease;
    z-index: 999999;
    cursor: pointer;
}

@keyframes fadeInBig {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Collapse Button */
.collapse-btn {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: var(--accent-green-bright);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-left: var(--spacing-sm);
    transition: var(--transition-fast);
    font-family: monospace;
}

.collapse-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

.collapse-content {
    display: none;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(76, 175, 80, 0.2);
}

.collapse-content.show {
    display: block;
}

.collapse-content span {
    display: inline-block;
    background: rgba(76, 175, 80, 0.05);
    color: var(--text-tertiary);
    padding: 2px 6px;
    margin: 2px 4px 2px 0;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* Links */
a {
    color: var(--accent-green-bright);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    color: var(--text-secondary);
    line-height: 2;
    margin-left: 20px;
}

.copied-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    background: rgba(76, 175, 80, 0.9) !important;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.4);
}

.copied-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.copied-notification span {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.copied-notification::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    filter: brightness(0) invert(1);
}

/* Hero Banner */

/* Responsive */
@media (max-width: 768px) {
    nav {
        position: relative;
        top: 0;
        margin: var(--spacing-sm) 0;
        padding: var(--spacing-xs);
    }

    nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
        gap: 4px;
    }

    nav a {
        width: 100%;
        justify-content: center;
        padding: 10px 10px;
        font-size: 0.85rem;
    }

    .bigass-icon {
        width: 120px;
    }

    .vertical-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .horizontal-preview {
        grid-template-columns: 1fr;
    }

    .icon-img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    nav a {
        font-size: 0.875rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

.header-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
    min-height: 150px;
    object-fit: cover;
}

/* Dvar Editor */
.dvar-editor-container {
    position: relative;
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(76, 175, 80, 0.1);
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.editor-title {
    color: var(--accent-green-bright);
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
}

.editor-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.editor-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.editor-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--accent-green);
    color: var(--accent-green-bright);
}

/* Dvar Editor */
.dvar-editor-container {
    position: relative;
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.dvar-buttons {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    z-index: 10;
}

.editor-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.editor-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.dvar-textarea {
    width: 100%;
    min-height: 150px;
    padding: var(--spacing-md);
    padding-right: 40px;
    /* Space for buttons */
    background: transparent;
    border: none;
    color: var(--accent-green-bright);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.dvar-textarea::placeholder {
    color: var(--text-tertiary);
    opacity: 0.5;
}

/* Dvar Presets */
.presets-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    align-items: center;
}

.preset-btn {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--accent-green-bright);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.preset-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--accent-green);
    color: #fff;
}

.preset-manage-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition-fast);
    padding: 4px;
    color: white;
}

.preset-manage-btn:hover {
    opacity: 1;
    transform: rotate(45deg);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.modal-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: var(--spacing-md);
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.presets-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.preset-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.preset-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    flex: 1;
}

.preset-content-input {
    flex: 2;
}

.preset-actions {
    display: flex;
    gap: 4px;
}

.preset-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    color: white;
}

.preset-action-btn:hover {
    opacity: 1;
}

.add-preset-btn {
    width: 100%;
    padding: 8px;
    background: rgba(76, 175, 80, 0.2);
    border: 1px dashed rgba(76, 175, 80, 0.5);
    color: var(--accent-green-bright);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.add-preset-btn:hover {
    background: rgba(76, 175, 80, 0.3);
}

.save-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.save-btn:hover {
    background: var(--accent-green-bright);
}



/* Drag and Drop Styles */
.preset-item[draggable="true"] {
    cursor: move;
}

.preset-item.dragging {
    opacity: 0.4;
}

.preset-item.drag-over {
    border-top: 2px solid var(--accent-green);
}

.drag-handle {
    cursor: grab;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    padding: 0 4px;
}

.drag-handle:hover {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(30, 30, 30, 0.98);
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    margin-top: -1px;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(76, 175, 80, 0.3);
    color: var(--accent-green-bright);
    font-weight: bold;
}

/* Prevent image dragging */
img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

/* Fix autocomplete positioning */
.dvar-editor-container {
    position: relative !important;
}

.autocomplete-dropdown {
    position: absolute !important;
    bottom: auto !important;
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    margin-top: 0 !important;
}

.dvar-textarea:focus~.autocomplete-dropdown,
.autocomplete-dropdown.visible {
    display: block !important;
}

/* Active preset glow effect */
.preset-btn.active {
    background: rgba(76, 175, 80, 0.3);
    border-color: var(--accent-green-bright);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    color: white;
    font-weight: bold;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and below */
@media (max-width: 768px) {

    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Navigation */
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Dvar Editor */
    .dvar-editor-container {
        padding: 1rem;
    }

    .dvar-textarea {
        min-height: 200px;
        font-size: 0.9rem;
    }

    .dvar-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .editor-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    /* Presets */
    .presets-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .preset-btn,
    .preset-manage-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
        /* Touch-friendly */
    }

    /* Command blocks */
    .command-block {
        padding: 1rem;
    }

    /* Camo cards */
    .camo-grid {
        grid-template-columns: 1fr;
    }

    /* Tables */
    .compact-table {
        font-size: 0.85rem;
    }

    .compact-table th,
    .compact-table td {
        padding: 0.5rem;
    }

    /* Modal */
    .preset-modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }

    .preset-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .preset-input {
        width: 100% !important;
    }

    /* Autocomplete */
    .autocomplete-item {
        padding: 12px;
        font-size: 1rem;
        min-height: 44px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    /* Hide drag handles on mobile */
    .drag-handle {
        display: none;
    }

    /* Larger touch targets */
    .editor-btn,
    .preset-btn,
    .preset-manage-btn {
        min-height: 52px;
        font-size: 1.1rem;
    }

    /* Smaller autocomplete */
    .autocomplete-dropdown {
        max-height: 150px;
    }
}

/* Landscape mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .dvar-textarea {
        min-height: 150px;
    }

    .autocomplete-dropdown {
        max-height: 120px;
    }
<<<<<<< HEAD
}

/* ============================================
   GAME STUFF PAGE - ITEMS GRID
   ============================================ */

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    margin-top: 20px;
}

.item-card {
    background: rgba(40, 40, 40, 0.1);
    border: 1px solid rgba(100, 200, 100, 0.15);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    position: relative;
    transform-style: preserve-3d;
}

.item-card:hover {
    border-color: rgba(102, 187, 106, 0.5);
    box-shadow: 0 0 20px rgba(102, 187, 106, 0.3);
    transform: translateY(-5px);
    background: rgba(40, 40, 40, 0.15);
}

.item-card.hover-active {
    background: rgba(102, 187, 106, 0.08);
}

.item-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.1) 0%, rgba(102, 187, 106, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 187, 106, 0.05) 100%);
    pointer-events: none;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover .item-image img {
    transform: scale(1.05);
}

.item-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.item-info h3 {
    font-size: 1.3em;
    color: #66BB6A;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(102, 187, 106, 0.3);
}

.item-info p {
    margin: 4px 0;
    font-size: 0.9em;
}

.weapon-type {
    color: rgba(200, 200, 200, 0.7);
    font-style: italic;
}

.game-title {
    color: #ff9800;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-section {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(100, 200, 100, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3em;
    color: #66BB6A;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(102, 187, 106, 0.4);
}

.hero-section .hero-tagline {
    color: rgba(200, 200, 200, 0.7);
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

.footer {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(100, 200, 100, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    margin-top: 60px;
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.version-info span {
    font-size: 0.9em;
    color: #e0e0e0;
}

/* Animation Effects */
@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card {
    animation: fadeInItem 0.6s ease forwards;
}

.item-card:nth-child(1) { animation-delay: 0.1s; }
.item-card:nth-child(2) { animation-delay: 0.15s; }
.item-card:nth-child(3) { animation-delay: 0.2s; }
.item-card:nth-child(4) { animation-delay: 0.25s; }
.item-card:nth-child(5) { animation-delay: 0.3s; }
.item-card:nth-child(6) { animation-delay: 0.35s; }

/* Shine Effect */
.item-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 187, 106, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.item-card:hover::after {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .featured-links h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .item-card {
        min-height: 380px;
    }

    .item-image {
        height: 250px;
    }

    .item-info {
        padding: 15px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .featured-links h2 {
        font-size: 1.3em;
    }

    .content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 1.5em;
    }

    .featured-links h2 {
        font-size: 1.1em;
    }

    .item-card {
        min-height: 340px;
    }

    .item-image {
        height: 200px;
    }
}