/* Custom styles for the RUST PvE page */
.page-container {
    padding-bottom: 2rem;
}

.banner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.kit-modal {
    background-color: #15151c;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.connect-widget {
    margin-bottom: 2rem;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid #1f2937;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 56rem; /* max-w-4xl equivalent */
}

@media (min-width: 768px) {
    .connect-widget {
        padding: 1.5rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.widget-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-ip-rust {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ef4444; /* red-500 */
    font-family: monospace;
}

.widget-btn-rust {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    background-color: rgba(220, 38, 38, 0.9); /* red-600 */
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.2);
    cursor: pointer;
    transition: all 150ms;
}

.widget-btn-rust:hover {
    background-color: #dc2626;
}

.widget-btn-rust:active {
    background-color: #b91c1c;
}

/* Custom commands list styles */
.commands-container {
    margin-top: 3rem; /* mt-12 */
    background-color: rgba(17, 24, 39, 0.6); /* bg-gray-900/60 */
    backdrop-filter: blur(12px); /* backdrop-blur-md */
    border: 1px solid #1f2937; /* border-gray-800 */
    border-radius: 1rem; /* rounded-2xl */
    padding: 1.5rem; /* p-6 */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    text-align: left;
}

@media (min-width: 768px) {
    .commands-container {
        padding: 2rem; /* md:p-8 */
    }
}

.commands-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 800; /* font-extrabold */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #ef4444, #f97316, #eab308); /* from-red-500 via-orange-500 to-yellow-500 */
    margin-bottom: 0.5rem; /* mb-2 */
}

.commands-subtitle {
    color: #9ca3af; /* text-gray-400 */
    margin-bottom: 2rem; /* mb-8 */
    font-size: 0.875rem; /* text-sm */
}

@media (min-width: 768px) {
    .commands-subtitle {
        font-size: 1rem; /* md:text-base */
    }
}

.commands-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

.command-card {
    background-color: rgba(0, 0, 0, 0.4); /* bg-black/40 */
    border: 1px solid #1f2937; /* border-gray-800 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.25rem; /* p-5 */
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.command-card:hover {
    border-color: rgba(239, 68, 68, 0.5); /* hover:border-red-500/50 */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1); /* hover:shadow-[0_0_15px_rgba(239,68,68,0.1)] */
}

.card-icon-wrap {
    padding: 0.5rem; /* p-2 */
    background-color: rgba(239, 68, 68, 0.1); /* bg-red-500/10 */
    color: #ef4444; /* text-red-500 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: background-color 150ms;
}

.command-card:hover .card-icon-wrap {
    background-color: rgba(239, 68, 68, 0.2); /* group-hover:bg-red-500/20 */
}

.copy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.6); /* bg-black/60 */
    padding-left: 0.75rem; /* px-3 */
    padding-right: 0.75rem;
    padding-top: 0.375rem; /* py-1.5 */
    padding-bottom: 0.375rem;
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid #1f2937; /* border-gray-800 */
    cursor: pointer;
    transition: border-color 150ms;
}

.command-card:hover .copy-container {
    border-color: #374151; /* group-hover:border-gray-700 */
}

.copy-code {
    color: #f87171; /* text-red-400 */
    font-family: monospace;
    font-size: 0.875rem; /* text-sm */
}

.copy-icon {
    color: #6b7280; /* text-gray-500 */
    transition: color 150ms;
}

.copy-container:hover .copy-icon {
    color: #f87171; /* hover:text-red-400 */
}

.command-desc {
    color: #9ca3af; /* text-gray-400 */
    font-size: 0.75rem; /* text-xs */
    padding-left: 0.25rem; /* pl-1 */
}

.modal-trigger-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0.75rem; /* px-3 */
    padding-right: 0.75rem;
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem;
    background-color: rgba(239, 68, 68, 0.1); /* bg-red-500/10 */
    color: #f87171; /* text-red-400 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 150ms;
}

.modal-trigger-btn:hover {
    background-color: rgba(239, 68, 68, 0.2); /* hover:bg-red-500/20 */
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.modal-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
    margin-left: 0.5rem;
}

.kit-card {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(31, 41, 55, 0.8);
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: left;
}

.scrap-badge {
    font-size: 0.75rem;
    border-width: 1px;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    border-radius: 9999px;
    font-weight: 600;
    white-space: nowrap;
    background-color: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* Modal Header styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem; /* pb-4 */
    border-bottom: 1px solid #1f2937; /* border-gray-850 */
    cursor: move;
    user-select: none;
}

.modal-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
}

.modal-pulse-svg {
    width: 1.25rem; /* w-5 */
    height: 1.25rem;
    color: #ef4444; /* text-red-500 */
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; /* animate-pulse */
}

.modal-close-btn {
    color: #9ca3af; /* text-gray-400 */
    cursor: pointer;
    transition: all 200ms;
}

.modal-close-btn:hover {
    color: #ef4444; /* hover:text-red-500 */
    transform: rotate(90deg); /* hover:rotate-90 */
}

.modal-close-svg {
    width: 1.5rem; /* w-6 */
    height: 1.5rem;
}

/* Modal Content Grid */
.modal-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem; /* gap-6 */
    padding-top: 1.5rem; /* pt-6 */
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 0.25rem; /* pr-1 */
}

@media (min-width: 768px) {
    .modal-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)); /* md:grid-cols-3 */
        max-height: none; /* md:max-h-none */
    }
}

/* Kit Card elements */
.kit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem; /* gap-2 */
    margin-bottom: 0.75rem; /* mb-3 */
}

.kit-card-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    color: #f87171; /* text-red-400 */
    font-family: monospace; /* font-mono */
    margin: 0;
}

.kit-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* space-y-2 */
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem; /* text-sm */
    color: #d1d5db; /* text-gray-300 */
}

.kit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
}

.kit-item-bullet {
    width: 0.375rem; /* w-1.5 */
    height: 0.375rem; /* h-1.5 */
    background-color: #ef4444; /* bg-red-500 */
    border-radius: 9999px; /* rounded-full */
    display: inline-block;
    flex-shrink: 0;
}

.widget-btn-discord {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    background-color: #5865F2;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: 0 10px 15px -3px rgba(88, 101, 242, 0.2);
    cursor: pointer;
    transition: all 150ms;
    text-decoration: none;
}

.widget-btn-discord:hover {
    background-color: #4752c4;
}

.widget-btn-discord:active {
    background-color: #3c45a3;
}
