/* Hytale Minimalist Theme - Bootstrap Overrides */

:root {
    --primary-color: #00d2ff;
    --bg-dark: #0f0f12;
    --bg-card: #18181b;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Space Grotesk', sans-serif;
    color: #f0f0f0;
    /* Global text color fix */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.5px;
    color: #ffffff;
    /* Ensure headers are white */
}

/* ... existing code ... */

/* Text Contrast Overrides */
.text-secondary {
    color: #ccc !important;
    /* Lighter gray for better visibility */
}

.fw-bold {
    font-weight: 700 !important;
}

.text-gradient {
    background: linear-gradient(45deg, #00d2ff, #9966ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.glass-effect {
    background: rgba(15, 15, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    letter-spacing: 1px;
}

/* Hero */
#hero {
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
}

.bg-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 15, 18, 0.7), var(--bg-dark));
    /* Smooth fade to black */
    z-index: 1;
}

/* Utilities */
.hover-elevate {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cursor-pointer {
    cursor: pointer;
}

.ls-1 {
    letter-spacing: 1px;
}

.object-fit-cover {
    object-fit: cover;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

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

/* Custom Gradients */
.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

.hover-border-primary {
    transition: border-color 0.3s;
}

.hover-border-primary:hover {
    border-color: var(--primary-color) !important;
}

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

/* Article Styling */
.article-content p {
    font-size: 1.15rem;
    /* Slightly larger */
    line-height: 1.8;
    color: #e5e7eb;
    /* Lighter: Tailwind gray-200 */
    /* Tailwind gray-300 equiv */
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.article-content ul {
    margin-bottom: 2rem;
}

.article-content ul,
.article-content ol,
.article-content li {
    color: #e0e0e0;
    /* Match paragraph color */
    margin-bottom: 0.5rem;
}

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

/* Text Contrast Overrides */
.text-secondary {
    color: #a0a0a0 !important;
    /* Lighter gray than Bootstrap default */
}

.text-muted {
    color: #9ca3af !important;
}

/* Form Controls Dark Mode */
.form-control,
.form-select {
    background-color: #1e1e24;
    color: #e0e0e0;
    border-color: #333;
}

.form-control::placeholder {
    color: #6b7280;
}

.form-control:focus,
.form-select:focus {
    background-color: #000;
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25);
}

/* Item Card Specifics */
.item-card {
    transition: all 0.2s ease;
}

.item-card:hover {
    transform: scale(1.05);
    background-color: #222;
    z-index: 10;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

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

/* Crafting Grid Customization */
#crafting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

#crafting-grid .item-card {
    font-size: 0.75rem;
}

#crafting-grid .ratio {
    /* Target 90px roughly, container minmax 110px allows for padding */
    width: 90px;
    height: 90px;
    margin: 0 auto 0.5rem auto;
}