/* MC Requires Box — Frontend fallback CSS
 * (Theme 9minecraft đã có file riêng: themes/9minecraft-1.0.8/css/requires-cards.css)
 * Plugin chỉ load file này khi theme không có CSS class .mcap-req-card.
 */

.mcap-requires-section {
    margin: 32px 0;
}
.mcap-requires-section h3 {
    position: relative;
    display: inline-block;
    margin: 0 0 18px 0;
    padding: 0 0 8px 0;
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}
.mcap-requires-section h3::before {
    content: "⚙";
    margin-right: 8px;
    color: #2271b1;
}
.mcap-requires-section h3::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #2271b1, #46b1e8);
    border-radius: 2px;
}

.mcap-req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.mcap-req-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15,23,42,.04);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.mcap-req-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #cbd5e1, #94a3b8);
    transition: all .25s ease;
}
.mcap-req-linked {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}
.mcap-req-linked::before {
    background: linear-gradient(180deg, #2271b1, #46b1e8);
}
.mcap-req-linked:hover {
    border-color: #2271b1;
    box-shadow: 0 8px 24px rgba(34,113,177,.18);
    transform: translateY(-2px);
}
.mcap-req-linked:hover::before { width: 6px; }
.mcap-req-linked:hover .mcap-req-icon { transform: scale(1.1) rotate(-5deg); }

.mcap-req-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 10px;
    transition: transform .25s ease;
}
.mcap-req-card:not(.mcap-req-linked) .mcap-req-icon {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    opacity: .7;
}

.mcap-req-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mcap-req-name {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mcap-req-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcap-req-dl {
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2271b1, #46b1e8);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(34,113,177,.3);
    transition: all .25s ease;
}
.mcap-req-linked:hover .mcap-req-dl {
    background: linear-gradient(135deg, #135e96, #2271b1);
    transform: translateY(2px);
}

@media (max-width: 600px) {
    .mcap-req-grid { grid-template-columns: 1fr; gap: 10px; }
    .mcap-req-card { padding: 14px 16px; }
    .mcap-req-icon { width: 40px; height: 40px; font-size: 22px; }
    .mcap-req-name { font-size: 14px; }
    .mcap-req-dl { width: 32px; height: 32px; font-size: 16px; }
}
