/* ============================================
   INFO PAGES (Rules, Min Prices, Guidelines)
   ============================================ */

.info-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 60px;
    min-height: calc(100vh - 200px);
}

.info-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Header Section */
.info-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

    .info-header h1 {
        font-size: 42px;
        font-weight: 800;
        background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: 12px;
        letter-spacing: -1px;
    }

.info-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* Search Bar */
.search-container {
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        background: rgba(168, 85, 247, 0.08);
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    }

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

/* Rules Section */
.rules-section {
    margin-bottom: 40px;
}

    .rules-section:last-of-type {
        margin-bottom: 0;
    }

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.section-icon {
    font-size: 32px;
    line-height: 1;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Rule Items */
.rule-item {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

    .rule-item:last-child {
        margin-bottom: 0;
    }

    .rule-item:hover {
        background: rgba(168, 85, 247, 0.08);
        border-color: rgba(168, 85, 247, 0.25);
        transform: translateX(4px);
    }

    .rule-item h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }

    .rule-item ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .rule-item ul li {
            color: var(--text-primary);
            line-height: 1.7;
            padding-left: 24px;
            position: relative;
            margin-bottom: 8px;
        }

            .rule-item ul li:last-child {
                margin-bottom: 0;
            }

            .rule-item ul li::before {
                content: '•';
                position: absolute;
                left: 8px;
                color: var(--primary);
                font-weight: 700;
                font-size: 20px;
            }

    .rule-item a {
        color: var(--primary);
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: all 0.2s ease;
    }

        .rule-item a:hover {
            color: var(--secondary);
            border-bottom-color: var(--secondary);
        }

/* Info Notice */
.info-notice {
    background: rgba(168, 85, 247, 0.1);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 32px;
}

    .info-notice p {
        color: var(--text-primary);
        line-height: 1.6;
        margin-bottom: 10px;
        font-size: 14px;
    }

        .info-notice p:last-child {
            margin-bottom: 0;
        }

    .info-notice strong {
        color: var(--primary);
        font-weight: 700;
    }

/* ============================================
   MIN PRICES PAGE - COMPACT LAYOUT
   ============================================ */

.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Short categories - take 1 column */
.price-category.short {
    grid-column: span 1;
}

/* Long categories - take full width, items in 3 columns */
.price-category.long {
    grid-column: 1 / -1;
}

    .price-category.long .price-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

/* Enchantments - full width, items in grid */
.price-category.enchantments {
    grid-column: 1 / -1;
}

.price-category {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

    .price-category:hover {
        background: rgba(168, 85, 247, 0.08);
        border-color: rgba(168, 85, 247, 0.25);
    }

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
    letter-spacing: -0.3px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .price-item:hover {
        background: rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.25);
        transform: translateX(3px);
    }

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
    white-space: nowrap;
    margin-left: 12px;
}

    .item-price.no-min {
        color: var(--text-secondary);
        font-style: italic;
    }

/* Enchantments Grid */
.enchant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.enchant-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
}

    .enchant-item:hover {
        background: rgba(168, 85, 247, 0.1);
        border-color: rgba(168, 85, 247, 0.25);
        transform: translateY(-2px);
    }

/* Hide categories with no visible items */
.price-category.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-category.long .price-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .enchant-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .info-page-container {
        padding: 90px 20px 50px;
    }

    .info-content {
        padding: 28px 20px;
    }

    .info-header h1 {
        font-size: 32px;
    }

    .info-subtitle {
        font-size: 14px;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .price-category.short,
    .price-category.long {
        grid-column: 1;
    }

    .price-category {
        padding: 16px;
    }

    .category-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .price-category.long .price-list {
        grid-template-columns: 1fr;
    }

    .price-item {
        padding: 8px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .item-name {
        font-size: 13px;
    }

    .item-price {
        font-size: 12px;
        margin-left: 0;
    }

    .enchant-grid {
        grid-template-columns: 1fr;
    }

    .enchant-item {
        font-size: 12px;
        padding: 8px 12px;
    }

    .info-notice {
        padding: 16px;
    }

        .info-notice p {
            font-size: 13px;
        }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-icon {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .rule-item {
        padding: 16px;
    }

        .rule-item h3 {
            font-size: 16px;
        }
}
